I don't know Regex very well, and I'm trying to get all of the script tags from some extracted page text. I've tried the following pattern:
<script.*?>.*?</script>
But this doesn't seem to return any script tag that has any code within it. I.e. it from the following:
<script type="text/javascript" src="Scripts/Scipt1.js"></script>
<script type="text/javascript" src="Scripts/Scipt2.js"></script>
<script type="text/javascript">
function SomeMethod()
{
}
</script>
I'll only get the following results:
<script type="text/javascript" src="Scripts/Scipt1.js"></script>
<script type="text/javascript" src="Scripts/Scipt2.js"></script>
How can I return all 3? (NB. I do want to maintain the outer script tags in the results).