httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] AliasMatch regular expression grouping
Date Mon, 07 Nov 2005 16:31:24 GMT
On 11/7/05, Matthew M. Boedicker <> wrote:
> The documentation for AliasMatch refers to "standard regular expressions"
> but is there any reference for exactly what syntax is allowed in AliasMatch
> directives?
> Is there a non-grouping version of parentheses, where the contents are
> not saved for later substitutions? Like (?:) in the Python re module.
> Is there any way to specify an optional group by following it with a
> question mark such as:
> AliasMatch "^/a/b/(c/)?d" /x/y/z

If you are using 2.x, then the answer is here:
Apache uses PCRE (the same library used by python, if my memory serves
me correctly).

In 1.3, regex is provided either by the HSRegex library, or by your
systems extended regex library, depending on how it is compiled.  The
regexes are less powerful, resembling what you get in egrep.


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