1 = OSSEC, os_regex Library. =
3 Fast and simple library for regular expressions in C.
5 This library is designed to be simple, but support
6 the most common regular expressions. It was design
7 with intrusion detection systems in mind, where having
8 all options is not crucial, but speed is.
10 The following expressions are supported:
11 \w -> A-Z, a-z, 0-9 characters
14 \p -> ()*+,-.:;<=>?[]!"'#$%&|{} (punctuation characters)
15 \W -> For anything not \w
16 \D -> For anything not \d
17 \S -> For anything not \s
20 Each regular expression can be followed by:
22 + -> To match one or more times (eg \w+ or \d+)
23 * -> To match zero or more times (eg \w* or \p*)
25 We also support the "^" to match at the beginning of the text,
26 '$" to match at the end of the text and "|" to have multiple