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
/
<div class\="custom">(.*?)<\/div>
/
g
Input 1
1
New
<div><div class="custom"><p>TEST</p><div>Another inner div</div><div class="another-class">Some text</div></div></div> <p>Another text</p> <div><div class="hello"><div class="custom another" data-custom="test-data"><div>Another inner div</div><p>TEST</p><div class="another-class">Some text</div></div></div></div>
Substitution
<div><div class="custom"><p>TEST</p><div>Another inner div</div><div class="another-class">Some text</div></div></div> <p>Another text</p> <div><div class="hello"><div class="custom another" data-custom="test-data"><div>Another inner div</div><p>TEST</p><div class="another-class">Some text</div></div></div></div>