Regular Expressions 101

read zip and location from string

Open Workspace
  • JavaScript
  • Match
1

Regular Expression

/
(\d{5})+|(\w)+
/
g

Description

exact 5 digits followed by string (city)

Submitted by moritz