I want to remove some scripts from pages that contain the word "site"
<scritp>
o.com
bla bla bla
</script><p>this is line></p>
<script>
google.com/jquery.js !
</script>
<scritp>
site.com
bla bla bla
</script><p>aa</p>
CONTENT
STYLE
SIDEBAR
...
<scritp>
site.com
aaa bla bla bla
</script><p>a</p>
I am using the following regular expression:
<scritp>.*?site.*?<\/script>
But it contains lines that are not related to the matches.
debug link : https://regex101.com/r/rC0vF8/2
How can I stop when I find a match for: </script>
I want to match all <script>site.com</script>
at once
`](https://regex101.com/r/xR6aG5/3)