Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
`
^(?<address>(?<streetname>\h*\S.*?)\h*(?<housenumber>\d+\h*[A-Za-z]?))(?:/(?<stairs>\d+)(?=(?:/\d+){1,2}))?(?:/(?<floor>\d)(?=(?:/\d+)))?(?:/(?<door>\d+))?$
`
gm
Input 1
1
New
Lilienstr. 12a Leibnizstraße 36/28/2 Prager Straße 14/3/1/4 Guentherstr. 43 B Eberhard-Leibnitz Str. 1/7 Schießstätte 7/7