Regular Expressions 101

Community Patterns

get zip code

1

Regular Expression
ECMAScript (JavaScript)

/
[a-zA-Z]+\s\d[0-9]+
/
g

Description

this just matches the city credential followed by zipcode e.g: FL 18117

Submitted by Gabriel Micah - 3 years ago