httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kovacs Baldvin <>
Subject Re: [users@httpd] Re: Mod-Rewrite: Changing + to -, _ or .
Date Sun, 21 Aug 2005 09:03:15 GMT
On Sun, Aug 21, 2005 at 10:18:26AM +0200, Joost de Heer wrote:
> > 1. RewriteRule ^topics/([a-zA-Z-]+)
> - inside a set has a special meaning so you have to escape it:
> RewriteRule ^topics/([a-zA-Z\-]+)

It is definitely correct this way, but I don't get why is it not 
correct at the original form. As I remember, in perl regular expressions
- only has a special meaning inside [] if it is not in the first or
the last position. So [A-Z-] should be equivalent of [A-Z\-],
while [A-Z] not equivalent of [A\-Z].


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