regular expression 's/<script.+<\/script>' is greedy but we need ungreedy, because some page is like that.
<head> . . .<script>
</script> </head> <body> .... ... .. <script> </script> </body>
so right one is s/<script.+?<\/script>
Log in to post a comment.