Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
match but no replace
Open Workspace
PCRE2 (PHP)
Substitution
Created 2022-05-12 16:17
0
Regular Expression
/
(?<!
_
)
_
(?!
_
)
/
gm
Description
match an group in re.sub pattern but no replace it !
Submitted by
Anonymous