httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
Subject Re: [users@httpd] regexp in Locationmatch
Date Fri, 18 Jun 2004 13:16:54 GMT
[plain text, please...]

Lucioni Lorenzo wrote:
> I have this problem: I need to tell, with regular expression,

You know, the web is a wonderful place:
    http://www.perldoc.com/perl5.8.0/pod/perlre.html

> to apache LocationMatch, the following sentence:
>
> "all starting with /abcd but not starting with /abcd/efgh"

Perhaps this will do:

     <LocationMatch "^/abcd/(?!efgh)">

> Probably I can do it using regular expression in an advanced
> way but I'm not so practice with reg-exp.

Take a look in the above document, under look-ahead (negative) assertions.

Regards,
Robert Andersson

---------------------------------------------------------------------
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