In the example below, the regular expression must match everything between the script tags, including the script tags themselves but it must not select anything else.
<unmodified html content> <script> * </script> <more unmodified html>
The closest I've gotten so far is:
(<script>)[^~]*(</script>)
test markup:
<p> blah blah blah
</p> <span class="timestamp"><span class="hurrrp" id="faate_dd4dd">Nov 6, 2013</span>
<script>
if (FancyDate) FancyDate.add('derpaderp_1386447', 1385, 'MAIL_FORMAT');
</script>
</span>
<p> blah blah blah
</p> <span class="timestamp"><span class="hurrrp" id="faate_dd4dd">Nov 6, 2013</span>
<script>
if (FancyDate) FancyDate.add('derpaderp_1386447', 1385, 'MAIL_FORMAT');
</script>
</span>