Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

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

Description

ZIP code (US format)

Submitted by anonymous - 4 years ago