httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <>
Subject Re: [users@httpd] Re: Ampersand extends to the left part of regexes with RewriteRule, RedirectMatch and SetEnvIf: is that expected?
Date Fri, 04 Dec 2009 13:37:17 GMT
On 12/4/09, Francis GALIEGUE <> wrote:

>  The problem I have is with the & being systematically understood by
>  the right size of regexes to mean "the whole thing matched by the
>  matching left regex". While this is a common regex idiom in "basic"
>  regexes (sed acts this way for instance), it is not expected at all
>  from pcre (Perl doesn't know about &, and from what I've read about
>  pcre so far, pcre doesn't know about it either). Hence my puzzle.

I think Apache is simulating perls $&, and I think it's on purpose.
Seems pretty unwise.

Eric Covener

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message