Regular Expressions 101

Community Patterns

Community Library Entry

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