Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

/
\d{5}(?:-?\d{4})?
/
i

Description

US zip Code

Submitted by Aloke - 9 years ago