Re: [PHP4BETA] Bug in PHP4.0b3 perl-compatible regex?
| From: | Andrei Zmievski | Date: | Wed, 08 Dec 1999 23:01:26 +0000 |
| Subject: | Re: [PHP4BETA] Bug in PHP4.0b3 perl-compatible regex? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-7687@lists.php.net to get a copy of this message | ||
On Wed, 08 Dec 1999, Garth Hitchens wrote:
> I'm trying to make a perl-compatible regular expression work properly
> under php 4.0b3, and am frustrated by a weird behavior. At first I
> thought it was a lack of understanding, but now I'm pretty convinced
> it's a farily serious bug.
>
> Here's my simple test file...
>
> ----
>
> <?php
>
> print preg_replace('/<(\w+)>/','\\1',
> 'This <tests> removing <some> braces from a <string>');
>
> ?>
>
> ----
I've copied your example verbatim and tried it with the latest CVS copy.
It worked fine. To my knowledge there has been no changes to Perl
regexes after b3 that would affect this.
> Anybody have any ideas why this is happening? ANy ideas for
> workarounds? Is this a known bug in php4b3 or am I doing something
> wrong?
>
> I'm running php 4.0b3 under Apache 1.3.9, under apxs.
Can you try the latest CVS?
-Andrei
* The future has arrived, it's just not evenly distributed. -W. Gibson *