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
/
b(?![^<>]*(([\/\"']|]]|\b)>))
/
gi
Input 1
1
New
<span>This is some text where the b can match</span> <div>Here the can not match a b inside </div> <div id="bg">Here no match</div>