Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^((?:19|20)(?:(?:(?:[02468][048]|[13579][26])\/02\/(?:0[1-9]|[12]\d))|(?:(?![02468][048]|[13579][26])\d){2}\/02\/(?:0[1-9]|[1]\d|2[0-8])|\d{2}\/(?:(?:0[469]|11)\/(?:0[1-9]|[12]\d|30)|(?:0[13578]|10|12)\/(?:0[1-9]|[12]\d|30|31))))$
/
gm

Description

no description available

Submitted by anonymous - 7 years ago