Re: regex in locationmatch
Robert Ionescu wrote:
> 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.
Thanks Robert. I'm always looking for a chance to improve my dismal
regex skills.
So for Apache 1.3.x, I'm SOL trying to unprotect those particular
documents?
Thanks,
Julian
|