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(?:(?!of|a)[a-zA-Z]+ +)?[a-zA-Z]+\b(?= +(?:building|mansion|plaza)\b)
/
gm
Input 1
1
New
big fake plaza, 12 this street,district, city Green mansion, district, city Block 7 of orange building district, city 98 main street block a blue plaza, city blue red mansion, 46 pearl street, city