Regular Expression for Extracting Script Tags
This regular expression does the trick just fine:
\<(?:[^:]+:)?script\>.*?\<\/(?:[^:]+:)?script\>
But don't do it please
You will run into a problem by this simple HTML:
<script>
var s = "<script></script>";
</script>
How are you going to solve this problem? It is smarter to use the HTML Agility Pack for such things.
You can't parse HTML with regular expressions.
Use the HTML Agility Pack instead.