Regular Expressions 101

Library entries

Address Parser

Vote

0

Regular Expression
javascript

/
(?<Street>\d.+(?:court|ct|street|st|drive|dr|lane|ln|road|rd|blvd))(?:,\W*)((?<Suite>\w.+?)(?:,\W*))?(?<City>\w.+?)(?:,\W*)(?<State>[a-z]+)(?:\W*)(?<Zipcode>\d{5})
/
gmi

Description

Loading markdown...
Submitted by anonymous - 3 years ago