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
/
^(?!.*([ ,'-])\1)[a-z]+(?:[ ,'-]+[a-z]+)*$
/
gm
Input 1
New
hello what how are you the person's thing how, are you dash - between words how-are-you a-,-,-,-,b how are you? hi5 8ask yyyy. ! dff NoSpecialcharacters# 54445566 how are you how-are------you the person''s thing how,, are you
Substitution
hello what how are you the person's thing how, are you dash - between words how-are-you a-,-,-,-,b how are you? hi5 8ask yyyy. ! dff NoSpecialcharacters# 54445566 how are you how-are------you the person''s thing how,, are you