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
/
<section[a-z="'\s]+>([\s\S]*?)<\/section>
/
gmi
Input 1
1
New
<chapter id="chap1"> <para0><title></title></para0> </chapter> <chapter id="chap2"> <title>THEORY</title> <section id="Thoery"> <title>theory Section</title> <para0 verstatus="ver"> <title>Theory Para 0 </title> <text>blah blah</text> </para0> </section> <section id="Next section"> <title>title</title> <para0> <title>Title</title> <text>blah blah</text> </para0> </section> <section id="More sections"> <title>title</title> <para0> <title>Title</title> <text>blah blah</text> </para0> </section> <section id="section"> <title>title</title> <para0> <title>Title</title> <text>blah blah</text> </para0> </section>
Extraction