Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(\d{4,5}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))$
/
gm

Description

Date separated by dashes in the following format YYYY-MM-DD

Submitted by Efra - 3 years ago