Can't make regex work with Python
I need to extract the date in format of: dd Month yyyy (20 August 2013). I
tried the following regex:
\d{2}
(January|February|March|April|May|June|July|August|September|October|November|December)
\d{4}
It works with regex testers (chcked with several the text - Monday, 19
August 2013), but It seems that Python doesn't understand it. The output I
get is:
>>>
['August']
>>>
Can somebody please understand me why is that happening ?
Thank you !
No comments:
Post a Comment