Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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>
- <chapter id="chap1">
- <para0><title></title></para0>
- </chapter>
- <chapter id="chap1">
- <para0><title></title></para0>
- </chapter>
- <chapter> <title>Chapter Title</title>
- <section id="Section ID">
- <title>Section Title</title>
- <para0>
- <title>Para0 Title</title>
- <para>blah blah</para>
- </para0>
- </section>
- <section id="Next section">
- <title>title</title>
- <para0>
- <line>Title</line>
- <text>blah blah</text>
- </para0>
- </section>
- <section id="More sections">
- <title>title</title>
- <para0>
- <list>Title</list>
- <text>blah blah</text>
- </para0>
- </section>
- <section id="section">
- <title>title</title>
- <para0>
- <title>Title</title>
- <text>blah blah</text>
- </para0>
- </section>
- <ipbchap>
- <tags></tags>
- </ipbchap>
- </body>
- <rear>
- <tags></tags>
- </rear>
- </doc>'
- SecRegex = /<section.*?>[sS]*?</section>/;
- var fndSection = result.split(SecRegex);
- console.log("result string " + fndSection);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement