I would like to extract dates that is only in the specific format "Month day, year".If it is in any other format, I will skip it. I used the below regex function but only the month is being displayed not the day and year. Can some one point out what is wrong
>>> date_pattern="(?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May?|June?
|July?|Aug(?:ust)?|Sep(?:t(?:ember)?)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?\
s+\d{2},\s+\d{4})"
s = "the date is November 15, 2009"
print(re.findall(date_pattern,s))
Output expected : November 15, 2009
Output of the above code : "November"
Dec(?:ember)?-->Dec(?:ember)?)