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
/
bar0(?![|])
/
gm
Input 1
1
New
1) Search matches in the foobar0 - matches should be found 2) Search matches in the foobar0| - matches should be not found 3) Search matches in the foobar0|0 - matches should be not found