Re: Re: preg_match_all but no preg_replace_all?
| From: | John Nichel | Date: | Tue, 10 Aug 2004 18:50:26 +0000 |
| Subject: | Re: Re: preg_match_all but no preg_replace_all? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193358@lists.php.net to get a copy of this message | ||
Peter Brodersen wrote:
On 10 Aug 2004 16:53:59 -0000, in php.general you wrote:Regular expressions in Perl are not greedy by default. You have to specify the 'g' for it to be greedy. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.comYes. preg_replace is greedy by default.Err, global, that is (although it's also greedy per default, but then again, that's also the case for ereg-functions and perl) <snip>