I need an all encompassing date regular expression that will be working on fairly small (less than 500 words of text). To me all encompassing means that the regular expression can handle any form of date for instance (note we can assume US date format)
March 23, 2009
MAR-23-2009
3/23/2009
03/23/2009
3/23/09
03/23/09
3-23-2009
03-23-2009
3-23-09
03-23-09
2009-03-23
23 March 2009
23rd March 2009
aug 21, 2008
Here is an example of one of the lines I will be processing:
'Press release dated September 28 2009 announcing the Company\x92s revised revenue outlook after the introduction of our DeltaStar innovation tool in the quarter ended September 30 2009
I am going to be using it in the following way:
date_pattern=[login to view URL](theregex)
for line in list_of_text_lines:
date_locations=[[login to view URL]() for match in [login to view URL](line)]