Regular Expressions 101

Library entries

US and Canada Regex

Vote

2

Regular Expression
javascript

/
(^[0-9]{5}(-[0-9]{4})?$)|(^[ABCEGHJKLMNPRSTVXY]{1}[0-9]{1}[A-Z]{1} *[0-9]{1}[A-Z]{1}[0-9]{1}$)
/
zipcode

Description

Loading markdown...
Submitted by Kyle M. - 8 years ago