httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kovacs Baldvin <bald...@angel.elte.hu>
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].

Baldvin

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message