RE: [mod-security-users] Apache Regular Expressions
Brought to you by:
victorhora,
zimmerletw
|
From: Eli <eli...@ex...> - 2005-02-09 03:58:10
|
Rudi wrote:
> So instead of using a *not* reg ex I'll go the other way:
>
> Use this to find matches:
> <Files ~
"(main|movie|dvd4abuck|latest|popular|cat|stream|vote|movie|upcoming|wildpas
s|allcontent2)$">
>
> Instead of finding *not* matches
> <FilesMatch "(?<!login)$">
Untested, but if Apache allows this trick (which is POSIX regex compatible
even), it should technically do the trick:
<Files ~ "(login){0}$">
The {0} specifies that it should *NOT* find "login" at the end of the line.
Eli.
|