Regular Expressions 101

Community Patterns

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])$
/

Description

valida fechas de 19## a 20##, en formato yyyy-MM-dd

Submitted by http://www.regular-expressions.info/dates.html - 9 years ago