Hi
I am trying to replace anything between <script> </script> tags including script, I am using the following regular expression
Regex.Replace(i nput, @"<script\b[^>]*>(.*?)<\ /script>", " ");
But the problem is if there is a newline
e.g:- <scirpt> sample
</script>
Its not working because "." matches except new line. Can any one help me with this
Thank You
I am trying to replace anything between <script> </script> tags including script, I am using the following regular expression
Regex.Replace(i nput, @"<script\b[^>]*>(.*?)<\ /script>", " ");
But the problem is if there is a newline
e.g:- <scirpt> sample
</script>
Its not working because "." matches except new line. Can any one help me with this
Thank You
Comment