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
/
\w+([, ]+\w+){1,2}
/
g
Input 1
New
Bauman, Steve Steve Bauman John, Doe JD Sallinger Bauman, Steve Steve Bauman Doe, Mary Sue Mary Sue Doe Juan Carlos Ferrero Billy, Ray, Michael // WILL_NOT_MATCH John Steve Bauman O'Rielly Marc O'Connor John_Doe Steve-O