Re: [PHP4BETA] Status of regular expressions?
| From: | Andrey Zmievski | Date: | Tue, 31 Aug 1999 18:39:38 +0000 |
| Subject: | Re: [PHP4BETA] Status of regular expressions? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3927@lists.php.net to get a copy of this message | ||
Julien Stern wrote:
> Hi all,
>
> so, there is now the reg.c which handles the (I believe) fully
> POSIX compliant regular expressions and the pcre module which
> handle the Perl compatible regexs...
>
> Is this going to change? Is this going to be somehow unified?
> Is there a performance difference between the two?
>
> Also, it's probably not a problem to have two different ways to handle
> regexs, but if, say, functions from different libraries are to take
> different types of regex patterns as their inputs,
> it might cause some confusion, no ?
I don't think there are any plans currently to unify the two regular
expressions modules. For one, it would be very difficult to do, since Perl
ones provide much more functionality than POSIX ones.
Perl compatible regexs are also much faster than the POSIX ones. I do wish
more people would start using them, but I guess a lot of site still run
pre-3.0.9 versions which did not have PCRE.
-Andrey
* I wish life had an UNDO function. *