Re: [PHP4BETA] Stupid new (to PCRE) question
| From: | Andrei Zmievski | Date: | Fri, 05 May 2000 17:05:40 +0000 |
| Subject: | Re: [PHP4BETA] Stupid new (to PCRE) question | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14536@lists.php.net to get a copy of this message | ||
On Fri, 05 May 2000, Joey wrote:
> Am I the only one that can't make this work?
>
> <?
> $s = "foo <A> <a> <BAa>";
> preg_replace("/(<\/?)(\w+)([^>]*>)/e",
> "'\\1'.strtoupper('\\2').'\\3'",
> $s);
> print "\n\$s => $s.\n";
> ?>
> X-Powered-By: PHP/4.0RC2-dev
> Content-type: text/html
>
>
> $s => foo <A> <a> <BAa>.
Eh, you forgot to assign the return value to $s.
-Andrei
* Think digital, act analog. *