Regular Expressions 101

Sponsors

Library entries

0
dotnet

Script Tag Json

asd
Submitted by anonymous - 8 months ago
0
dotnet

篩選MP Log Day

篩選MP Log Day
Submitted by anonymous - 8 months ago
0
dotnet

E-mail

My first simple e-mail validator regex :)
Submitted by anonymous - 7 months ago
0
dotnet

Ipv4 with optional port

ipv4 with optional port
Submitted by anonymous - 5 months ago
0
dotnet

No leading or trailing spaces

No leading or trailing spaces
Submitted by anonymous - 5 months ago

dsf

Vote

1

Regular Expression
javascript

/
^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$
/

Description

Loading markdown...
Submitted by fdsfdsfdsf - 9 years ago