Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^((?=3[0-1]|[0-2]\d)\d\d)\.((?=1[0-2]|0[1-9])\d\d)\.\d{4}
/
gm

Description

Matches Gregorian Date Pattern Completed Challenge from Codewars

Submitted by Dashrath Sharma - a year ago