Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-05-12 13:28
Flavor·Python

r"
(?P<date>(0[1-9]|1[012])[-/.](0[1-9]|[12][0-9]|3[01])[-/.]((19|20)\d{2}))
"
gm
Open regex in editor

Description

For Dates formatted MM-DD-YYYY separated by Dot (.) Dash(-) or Slash(/) like (09-02-2021) with leading Zeros for single digit Month and Day.

Submitted by QuickRegEx