Regular Expressions 101

Library entries

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