Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(\S)(\S+)\1(?=\s|$)
/
gm
Test String
New
8This8 is &reallly& a #test# of %repl%acing% %mul%tiple 9matched9 9pairs
Substitution
Processing...
$2