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"
(?im) (?: ( [ \t] )+ # (1) \b (?: \d+ | [a-z] ) \b [ \t]* [ \t]* | ^ \b (?: \d+ | [a-z] ) \b [ \t]* [ \t]* ( ) # (2) )
"
gx
Input 1
1
New
There is a way 400 to trim8 wsp. t p From both sides.
Substitution
\1\2
There is a way 400 to trim8 wsp. t p From both sides.