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
/
(?![^<]+>)(Word1|word4|d6|red)
/
ig
Input 1
1
New
<custom-tag>Word4<span style='font-family:"Candara","sans-serif"; color:red;'>Word1 Word2</span>Word3</custom-tag> <custom-tag>Word1<span style='font-family:"Candara","sans-serif"'>Word2 red<br>Word1<b>Word6</b></span></custom-tag>