Regular Expressions 101

Library entries

Validador de Data (MMddYYYY e YYYYMMdd)

Vote

1

Regular Expression
javascript

/
^([1-9]|0[1-9]|1[012])([-\/.])([1-9]|0[1-9]|[12][0-9]|3[01])\2(\d{4})$|^(\d{4})([-\/.])([1-9]|0[1-9]|[12][0-9]|3[01])\6([1-9]|0[1-9]|[12][0-9]|3[01])$
/

Description

Loading markdown...
Submitted by Gustavo Américo (Gag) - 6 years ago