Regular Expressions 101

Sponsors

Library entries

3
pcre2

Email

email format control
Submitted by ahmetbarut - 2 years ago
3
pcre2

example

example
Submitted by anonymous - 2 years ago
3
javascript

email

no description available
Submitted by anonymous - 7 years ago
3
javascript

mm/dd/yyyy Date

no description available
Submitted by jay johnson - 9 years ago
3
javascript

po box

no description available
Submitted by anonymous - 9 years ago
3
javascript

javascript template replacement

no description available
Submitted by akamaozu - 8 years ago
3
javascript

TEST

negation
Submitted by anonymous - 8 years ago
3
javascript

Simple math regex

no description available
Submitted by anonymous - 8 years ago

Date validation

Vote

7

Regular Expression
javascript

/
^\d{4}-(((0[13578]|1[02])-(0[1-9]|[12]\d|3[0-1]))|(02-(0[1-9]|[12]\d))|((0[469]|11)-(0[1-9]|[12]\d|30)))$
/
gm

Description

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