Re: Ugh? Re: [PEAR-DEV] preg_replace/str_replace Re: [PEAR-DEV] Re: IT[X] fork, round 2

From: Date: Wed, 12 Feb 2003 21:25:22 +0000
Subject: Re: Ugh? Re: [PEAR-DEV] preg_replace/str_replace Re: [PEAR-DEV] Re: IT[X] fork, round 2
References: 1 2 3 4 5 6 7  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13210@lists.php.net to get a copy of this message
Matthias Englert wrote:
Without looking at the code (and never using IT), I would guess it's possible to do something like ->addBlock('([a-z]{4})','please \\1 down', $template); With str_replace instead of preg_replace that would no longer work. hope that helps to end the discussion
No, that won't help. And please do look at the code, the change in question is dealing with simple variable substitution: preg_replace('@{variable}@', $content, $template) vs. str_replace('{variable}', $content, $template)

« previous php.pear.dev (#13210) next »