It does assume that there are no other HTML tags between the <script> and </script> tags.
Er, no it doesn't -- it assumes there are no HTML open-brackets inside the script tags, and as they are also the less-than signs, that's a fatally flawed assumption. Any JavaScript for-loop will kill that regex.
--
Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.
M-J D
In reply to Re: Re: Stripping the contents of Javascript tags
by Cody Pendant
in thread Stripping the contents of Javascript tags
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |