Regular Expressions 101

get zip code

Open Workspace
  • JavaScript
  • Match
1

Regular Expression

/
[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