wilku wrote:/<[ ]*script.*<\/[ ]*script[ ]*>/i
When testing this in my regex engine http://regex.larsolavtorvik.com/ it doesn't support the new lines saidbakr required.
Adding ungreedy and dot all solve the problem.
/<[ ]*script.*<\/[ ]*script[ ]*>/isU
The example test I tested with was:
<script ending with </script>
and
< script > testing
regex </ script >