Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. <chapter id="chap1">
  2. <para0><title></title></para0>
  3. </chapter>
  4.  
  5. <chapter id="chap2"> <title>THEORY</title>
  6. <section id="Thoery">
  7. <title>theory Section</title>
  8. <para0 verstatus="ver">
  9. <title>Theory Para 0 </title>
  10. <text>blah blah</text>
  11. </para0>
  12. </section>
  13.  
  14. <section id="Next section">
  15. <title>title</title>
  16. <para0>
  17. <title>Title</title>
  18. <text>blah blah</text>
  19. </para0>
  20. </section>
  21.  
  22. <section id="More sections">
  23. <title>title</title>
  24. <para0>
  25. <title>Title</title>
  26. <text>blah blah</text>
  27. </para0>
  28. </section>
  29.  
  30. <section id="section">
  31. <title>title</title>
  32. <para0>
  33. <title>Title</title>
  34. <text>blah blah</text>
  35. </para0>
  36. </section>
  37.  
  38. <chapter id="chap1">
  39. <para0><title></title></para0>
  40. </chapter>
  41.  
  42. <chapter id="chap1">
  43. <para0><title></title></para0>
  44. </chapter>
  45.  
  46. <chapter> <title>Chapter Title</title>
  47. <section id="Section ID">
  48. <title>Section Title</title>
  49. <para0>
  50. <title>Para0 Title</title>
  51. <para>blah blah</para>
  52. </para0>
  53. </section>
  54.  
  55. <section id="Next section">
  56. <title>title</title>
  57. <para0>
  58. <line>Title</line>
  59. <text>blah blah</text>
  60. </para0>
  61. </section>
  62.  
  63. <section id="More sections">
  64. <title>title</title>
  65. <para0>
  66. <list>Title</list>
  67. <text>blah blah</text>
  68. </para0>
  69. </section>
  70.  
  71. <section id="section">
  72. <title>title</title>
  73. <para0>
  74. <title>Title</title>
  75. <text>blah blah</text>
  76. </para0>
  77. </section>
  78.  
  79. <ipbchap>
  80. <tags></tags>
  81. </ipbchap>
  82.  
  83. </body>
  84. <rear>
  85. <tags></tags>
  86. </rear>
  87. </doc>'
  88.  
  89. SecRegex = /<section.*?>[sS]*?</section>/;
  90. var fndSection = result.split(SecRegex);
  91.  
  92. console.log("result string " + fndSection);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement