Regular Expressions 101

Library entries

US Postal Code

Vote

2

Regular Expression
javascript

/
(^\d{4}\d$|^\d{4}\d-\d{4}$)
/
gm

Description

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