Regular Expressions 101

Community Patterns

1...34567...901

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])$
/
gm

Description

Comes with choice of four separators

Submitted by Regular-Expressions.info - 2 years ago