D
Du Dang
Text:
=====================
<script1>
***stuff A
</script1>
***more stuff
<script2>
***stuff B
</script2>
=====================
Regex:
<script>[\s\S]+</script>
I use "[\s\S]" intead of "." because there is newline char within the text.
The regex above will give me the match from <script1> to </script2>
instead of two separated matches.
How do I extract <script1> ... </script1> and <script2> ... </script2> as a
separted matches?
Thanks,
Du
=====================
<script1>
***stuff A
</script1>
***more stuff
<script2>
***stuff B
</script2>
=====================
Regex:
<script>[\s\S]+</script>
I use "[\s\S]" intead of "." because there is newline char within the text.
The regex above will give me the match from <script1> to </script2>
instead of two separated matches.
How do I extract <script1> ... </script1> and <script2> ... </script2> as a
separted matches?
Thanks,
Du