Regular Expressions 101

Sponsors

Library entries

0
pcre2

Picking 2nd 1st Line

Picking 2nd 1st Line
Submitted by Picking 2nd 1st Line - 12 days ago
0
pcre2

Picking 1st Line

Picking 1st Line
Submitted by Picking 1st Line - 12 days ago
0
pcre2

City State Zip

City State Zip
Submitted by anonymous - 12 days ago
1
pcre2

ticker but not EFS

ticker but not EFS
Submitted by anonymous - 12 days ago
0
javascript

soteshop price

aa
Submitted by anonymous - 14 days ago
0
java

id card

打断点
Submitted by anonymous - 14 days ago

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) - 7 years ago