Regular Expressions 101

Community Patterns

Regex range date

0

Regular Expression
PCRE2 (PHP >=7.3)

/
\b((?:19|20)\d{2})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])\b
/
gm

Description

Loading markdown...
Submitted by Ziuzhang - 9 months ago