Re: regex in locationmatch
Julian Wood wrote:
> I posted about this a few weeks ago and got pretty far, but now I have
> an additional requirement that I haven't been able to create a regex
> for. I'm using locationmatch like this:
>
> <LocationMatch "^/tlcprojectswiki/index.php/[^(Category)][^(Public)]">
with [^(Category)] you're excluding the characters ()aCegorty and not
the word Category.
You're looking for a negative lookahead like
<LocationMatch "^/tlcprojectswiki/index\.php/(?!(Category|Public))">
which works only with apache 2.x, since this is a PCRE and Apache 1.3
shipps with the POSIX Extended RegEx library.
--
Robert
|