Re: [mod-security-users] SelectiveFilter doesn't seem to work with //
Brought to you by:
victorhora,
zimmerletw
|
From: Ivan R. <iv...@we...> - 2006-02-21 22:35:35
|
PERA, Christophe (SOGETI TRANSICIEL) wrote: > Hello, > > Thanks for your previous answer. > > I have an other question, > > Where can i find the list of characters that they need > to put one "\" before, when i try to declare them in rules? Apache 2.x uses the PCRE regex library. Its documentation is located at: http://www.pcre.org/pcre.txt Here's what it says on metacharacters: -------------------- There are two different sets of metacharacters: those that are recog- nized anywhere in the pattern except within square brackets, and those that are recognized in square brackets. Outside square brackets, the metacharacters are as follows: \ general escape character with several uses ^ assert start of string (or line, in multiline mode) $ assert end of string (or line, in multiline mode) . match any character except newline (by default) [ start character class definition | start of alternative branch ( start subpattern ) end subpattern ? extends the meaning of ( also 0 or 1 quantifier also quantifier minimizer * 0 or more quantifier + 1 or more quantifier also "possessive quantifier" { start min/max quantifier Part of a pattern that is in square brackets is called a "character class". In a character class the only metacharacters are: \ general escape character ^ negate the class, but only if the first character - indicates character range [ POSIX character class (only if followed by POSIX syntax) ] terminates the character class The following sections describe the use of each of the metacharacters. -------------------- -- Ivan Ristic, Technical Director Thinking Stone, http://www.thinkingstone.com ModSecurity: Open source Web Application Firewall |