On Monday 21 May 2001 16:23, Plutarck wrote:

> Since there is a "/" in the code itself, I use "#" as a delimiter
> instead so I don't have to escape it, making it harder to read.
>
> So here's the code:
>
> $file = preg_replace("#<script.*>.*</script>#Ui", "<!-- RWW: Scripting
> killed -->", $file);

Stupid error (noticed this after trying for ~10 minutes...):
Add the "s" modifier. Otherwise "." doesn't match newlines.

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

Error 032: Recursion error - see error 032

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to