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
/
Name\b[\sa-z]*\K(?:[A-Z][a-z'\s-]*?)+(?=\s[a-z])
/
gm
Input 1
1
New
Name is William Bob Francis Ford Coppola-Mr-Cool King-Of-The-Mountain is a fake name. Allan Marc, Name is William Francis King-Of-The-Mountain might be a real name. His Name is O'neil O'Leary with an apostrophes.
Substitution
Name is William Bob Francis Ford Coppola-Mr-Cool King-Of-The-Mountain is a fake name. Allan Marc, Name is William Francis King-Of-The-Mountain might be a real name. His Name is O'neil O'Leary with an apostrophes.