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
/
\b(?!\d{5}\b)\d+\b(?:\s*\w\b)?(?=\D*\b\d{5}\b|\D*$)
/
gm
Input 1
New
32 Rue Jean Jaures 69000 Lyon Bâtiment 1 32 Rue Jean Jaures 69000 Lyon 32 B Jean Jaures 69000 Lyon Bâtiment 1 32 B Rue Jean Jaures 69000 Lyon
Extraction
32 Rue Jean Jaures 69000 Lyon Bâtiment 1 32 Rue Jean Jaures 69000 Lyon 32 B Jean Jaures 69000 Lyon Bâtiment 1 32 B Rue Jean Jaures 69000 Lyon