Re: What's wrong with this code?
| From: | Rasmus Lerdorf | Date: | Mon, 21 May 2001 13:26:05 +0000 |
| Subject: | Re: What's wrong with this code? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53711@lists.php.net to get a copy of this message | ||
> But I use PCRE functions, so I don't want to use ereg in one place and PCRE
> in another, so I tried:
>
> $file = preg_replace("#<script.*>.*</script>#i", "<!-- RWW:
> Scripting
> killed -->", $file);
'/<script.*>.*?<\/script>/i'
-Rasmus