Regular Expressions 101

Sponsors

Library entries

3
pcre2

Email

email format control
Submitted by ahmetbarut - a year ago
3
pcre2

example

example
Submitted by anonymous - a year ago
3
javascript

mm/dd/yyyy Date

no description available
Submitted by jay johnson - 8 years ago
3
python

date time

1/Jul/2013 03:27:12
Submitted by himel - 8 years ago

us postal/zip

Vote

13

Regular Expression
javascript

/
(^[0-9]{4}?[0-9]$|^[0-9]{4}?[0-9]-[0-9]{4}$)
/
gm

Description

Loading markdown...
Submitted by jay johnson - 8 years ago