Regular Expressions 101

Community Patterns

123...6

English date in "dd mmmm yyyy" format

9

Regular Expression
Python

r"
(?P<LongDate>(?P<Day>\d+)[\s  ]+(?P<Month>January|February|March|April|May|June|July|August|September|October|November|December)[\s  ]+(?P<Year>\d{4}))
"
giu

Description

Parse an English date following the "dd mmmm yyyy" format.

Submitted by Tantale - 9 years ago