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
/
(?<=<w-block-content[\s\S]*?<span[\s\S]*?<div[\s\S]*?>)[\s\S]*?(?=<\/w-block-content>)
/
g
Input 1
1
New
<w-block-content id="A"> CONTENT OF #A <span id="B"> CONTENT OF #B <div id="C"> <p>CONTENT OF #C</p> </div> CONTENT OF #B </span> CONTENT OF #A </w-block-content>