httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <>
Subject Re: New regex lib? (fwd)
Date Tue, 19 Jan 1999 10:10:34 GMT

In article <> you wrote:
> Ralf S. Engelschall wrote:
>> In article <> you wrote:
>> > Guys, for PHP4 (and Apache2) we should probably look into using Henry's
>> > new regex library.
>> Yes, and we should also look at Paul Hazel's re-implementation of the Perl
>> compatible regular expressions: PCRE
>> ( It's a nice library
>> which could make RewriteRules even more horrible (ARGL...don't strike me) ;-)

> fyi...

> PCRE is now being used by Python, as of version 1.5 (rather than a
> custom(?) regex module). PCRE works very well; it's fast; it's thread
> safe.

Yeah, and it provides really powerful regex variants as we all like from Perl.
For instance it could at least reduce some complicated rewrite rule sets to
just a single and more clear RewriteRule where backreferences in the pattern
can be used. And it provides even some sort of POSIX regex interface for
backward compatibility, although you cannot reach the full power of PCRE this
way, of course. 
                                       Ralf S. Engelschall

View raw message