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
r"
(?m)^[A-Z][a-z]+(?= [A-Z][a-z]+$)
"
g
Input 1
Cardoza Fred Catto, Philipa Duncan, Jean Jerry Smith and but and Andrew Red Abcd DDDD
Extraction
Cardoza Fred Catto, Philipa Duncan, Jean Jerry Smith and but and Andrew Red Abcd DDDD