Regular Expressions 101

Sponsors

Library entries

0
pcre2

Celular Brasil

Validar celular do Brasil
Submitted by Paulo Neves - 39 minutes ago
1
javascript

中文匹配

本示例启用了多行匹配 m
Submitted by yang - 2 days ago
0
pcre2

Test mail

Email test
Submitted by anonymous - 3 days ago
0
pcre2

No Squares

Match not square brackets
Submitted by max - 4 days ago

Date Validator

Vote

0

Regular Expression
javascript

/
(?=..?(?<del>[/,.-]))(?<!\d)(?<d>31(?=.0?[13578]\D|30(?=.0?[13-9])|.1[02])|29(?=.0?2(?:.\d*(?:[02468][048]|[13579][26])|.-?[48]|(?!(\k<del>)))\b|.(?:0?[13-9]|1[012]))|[0-1]?[1-9]|2[0-8])(\k<del>)(?<m>0?[1-9]|1[0-2])(?:(\k<del>)(?<y>-?[1-9]\d*?))?(?!(\k<del>))\b
/
g

Description

Loading markdown...
Submitted by anonymous - a month ago