I've 2 (or more) script tag in my html page, and i want to remove (replace with ' ')  them, which one has myfunc in its content (only script tags).
an example:
<html>
<head>
<title>Test</title>
<script type="text/javascript">
    function myfunc(){
        ...
        ...
        ...
    }
</script>
<script type="text/javascript">
    alert("Hello World!");
</script>
<script type="text/javascript">
    alert(myfunc());
</script>
</head>
</html>
I'm looking for a RegEx to do that, for php preg_replace.
Thank you, very much.
 
     
    