Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?P<EngDate>[a-zA-Z]+[\s\.])?(?P<Date0>(?:\d{1,2}(?=[\s,./-])|\d{4}))(?:\.(?=\ ))?(?(2),?)?(?P<d_sep>[\s,./-]\ ?)?(?:(?P<Date1>[^\W\d]+|\d{1,2})(?(3)\.?(?P=d_sep)))??(?P<Date2>\d{4}|\d{1,2})?(?P=d_sep)?(?=[日T\s])
"
gm

Description

no description available

Submitted by anonymous - 4 years ago