Regular Expressions 101

Library entries

ISO-8601 Date-only format

Vote

0

Regular Expression
javascript

/
-?(?:[1-9][0-9]*)?[0-9]{4}-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])
/
gm

Description

Loading markdown...
Submitted by anonymous - 3 years ago