DATE Template

From Simple Wiki

The %DATE% template uses this Regular Expression to extract Dates in a variety of formats:

\b[0-9]{1,2}(th|rd|st|nd){0,1}[\s]{0,1}(((J(anuary|uly|une))|February|(M(arch|ay))|(A(pril|ugust))|((Sept|Nov|Dec)ember)|October)|(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec))[.,]{0,1}[\s]{0,1}(19|20|)\d\d\b|\b(((J(anuary|uly|une))|February|(M(arch|ay))|(A(pril|ugust))|((Sept|Nov|Dec)ember)|October)|(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec))[.,]{0,1}[\s]{0,1}[0-9]{1,2}(th|rd|st|nd){0,1}[.,]{0,1}[\s]{0,1}(19|20|)\d\d\b|\b(0[1-9]|[12][0-9]|3[01]|[1-9])(th|rd|st|nd){0,1}[\s]{0,1}(day\s){0,1}(of\s){0,1}(((J(anuary|uly|une))|February|(M(arch|ay))|(A(pril|ugust))|((Sept|Nov|Dec)ember)|October)|(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec))[.,]{0,2}[\s]{0,1}(19|20|)\d\d\|\b(0[1-9]|1[012]|[1-9])[- /.](0[1-9]|[12][0-9]|3[01]|[1-9])[- /.](19|20|)\d\d\b|\b(0[1-9]|[12][0-9]|3[01]|[1-9])[- /.](0[1-9]|1[012]|[1-9])[- /.](19|20|)\d\d\b|\b(19|20|)\d\d[- /.](0[1-9]|1[012]|[1-9])[- /.](0[1-9]|[12][0-9]|3[01]|[1-9])\b|\b(0?[1-9]|[12][0-9]|3[01])([- /.]?)(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)([- / .]?)(19|20)?\d\d\b|\b(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)([- / .]?)(0?[1-9]|[12][0-9]|3[01])([- /.]?)(19|20)?\d\d\b