Split address line into street name and house number

Published on Tue Mar 01 2022

This regular expression splits an address line like for example "1117 Franklin Blvd" into the street name and house number. It also supports addresses where street name and house number are the other way around (e.g. "Mustermannstr. 1"). Furthermore, this regular expression also supports address lines where additional information is given that is neither a street name nor a house number (e.g. "3940 Radio Road, Unit 110", "Pallaswiesenstr. 57 App. 235", "Suite 1500, 802 Docklands Street"). The regular expression has 8 capture groups in total. The first 4 capture groups get used when the house number precedes the street name. The names of these capture groups are prefixed with "A_". If the house number succeeds the street name, the last 4 capture groups are used. These are prefixed with "B_".

Additional matching regexes for
Split address line into street name and house number

Split address line into street name and house number

This regular expression splits an address line like for example "1117 Franklin Blvd" into the street name and house number. It also supports addresses where street name and house number are the other way around (e.g. "Mustermannstr. 1"). Furthermore, this regular expression also supports address lines where additional information is given that is neither a street name nor a house number (e.g. "3940 Radio Road, Unit 110", "Pallaswiesenstr. 57 App. 235", "Suite 1500, 802 Docklands Street"). The regular expression has 8 capture groups in total. The first 4 capture groups get used when the house number precedes the street name. The names of these capture groups are prefixed with "A_". If the house number succeeds the street name, the last 4 capture groups are used. These are prefixed with "B_".

Address Check Validation

Check for true or false street address format

Match a valid IPv4 or IPv6 address

This regular expression will match an IPv4 address as well as both compressed or uncompressed IPv6 address.

from Google-Maps

results all street-adresses from http://maps.googleapis.com/maps/api/geocode/xml?sensor=false&address=

Triple Quoted String

More powerful than python style, this supports things like `"""" """"`, which matches totally. Also supports `"""a""""""b"""`, where there are two matches: `"""a"""`,`"""b"""`.

Mac-address filtering

Trying to capture a mac-address structure

North American Phone Number

Validate **North American** **phone numbers** with capture groups for the **Area Code**, **Exchange Code**, **Line Number**, and **Extension**.

ipv4 IP addressses, capturing private ranges

Capture 0.0.0.0-255.255.255.255 IP address octets. Capture private ranges, such as '169.254.*' and '10.*'

Regex Capture String

Capture out Parts using regular expressions

shortcode wordpress

Wordpress shortcode regular expression