in reply to Regex: Strip <script> tags?
should work. It accepts any characters that are not ">", up to the ">" that terminates the tag. It may not be the best solution to this particular problem, but it's a very handy regex idiom to have ready access to.s/<script[^>]*>.*?<\/script>//igs;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex: Strip <script> tags?
by ikegami (Patriarch) on Sep 02, 2007 at 20:01 UTC |