Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
[1-9][0-9][0-9]{2}-([0][1-9]|[1][0-2])-([1-2][0-9]|[0][1-9]|[3][0-1])
/
gm

Description

to detect date format YYYY-MM-DD ony starting from 1900

Submitted by anonymous - 2 years ago