Re: [users@httpd] Re: Mod-Rewrite: Changing + to -, _ or .

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux