I have a folder with multiple files, and I'd like to remove all <script>
tags and everything in between, e.g.:
This:
<script type="text/javascript">function(foo);</script>
As well as this:
<script type="text/javascript" src="scripts.js"></script>
I think in PHP it would be something like this:
<?php $string = preg_replace('#(\n?<script[^>]*?>.*?</script[^>]*?>)|(\n?<script[^>]*?/>)#is', '', $string); ?>
But I'm at a loss when it comes to UNIX.