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
/
(?is)(?<=([a-z])\s)(\1)([a-z]*)
/
g
Input 1
1
New
word dark king glow we end hello bye low wing word Dark King Glow We End hello bye LoW wing A a A b B C c C C
Substitution
word dark king glow we end hello bye low wing word Dark King Glow We End hello bye LoW wing A a A b B C c C C