Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^[0-9]{4}[-]{1}[0-9]{2}[-]{1}[0-9]{2}$
/
g

Description

must match format: yyyy-MM-dd

Submitted by anonymous - 3 years ago