Regular Expressions 101

Community Patterns

read zip and location from string

1

Regular Expression
ECMAScript (JavaScript)

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

Description

exact 5 digits followed by string (city)

Submitted by moritz - 8 years ago