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
@"
^[A-Z][a-zA-Z]*(?:\s+[a-zA-Z]+)*'s(?!\S)
"
gm
Input 1
1
New
Amarok's Golovin's Road => Amarok's Arkouna Dream's Elowin Engel's => Arkouna Dream's Arkouna Dream's Elowin Engel's => Arkouna Dream's (in this case, I added a space after Engel's) Liubov's Niagara => Liubov's Urane Of Watson Lake => nothing Of the mountain's Dog
Extraction
Amarok's Golovin's Road => Amarok's Arkouna Dream's Elowin Engel's => Arkouna Dream's Arkouna Dream's Elowin Engel's => Arkouna Dream's (in this case, I added a space after Engel's) Liubov's Niagara => Liubov's Urane Of Watson Lake => nothing Of the mountain's Dog