Re: tricky preg_replace and how to escape the \{occurencenumber}
| From: | Jason Wong | Date: | Fri, 16 Aug 2002 16:39:17 +0000 |
| Subject: | Re: tricky preg_replace and how to escape the \{occurencenumber} | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112985@lists.php.net to get a copy of this message | ||
On Friday 16 August 2002 22:12, lallous wrote:
> Actually the interpreter will evaluate the '\1'. '1' . '\2' into
> one string
> before passing it to preg_replace
> So it will yield up as I originally wrote it, and it won't work.
Hmm, you're right. The interpreter is smarter than I thought :-/
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
"Why should we subsidize intellectual curiosity?"
-Ronald Reagan
*/