Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?<!")(Level\s\d+)(?!")
/
gm
Input 1
1
New
This is a test with various "Level 2" and Level 5 and stuff. Not sure how to treat "Level 2 or Level 5" though. Also capturing Level 12 would be nice I guess? (Not "Level 12" of course though)
Substitution