I need to match dates in form:
January 10, 2012
And replace in form:
10 January 2012
Here is what I have so far:
pattern = re.findall(r'(?:January|February|March|April|May|June|July|August|September|October|November|December)\s\d\d,\s\d{4}', text)
print pattern
How do i replace?