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
/
(text|simple)(?![^<]*>|[^<>]*<\/)
/
gm
Input 1
This is simple html text <span class='simple'>simple simple text text</span> text
Extraction
This is simple html text <span class='simple'>simple simple text text</span> text