Imported Upstream version 2.3
[ossec-hids.git] / src / os_regex / README
1 OSSEC os_regex 0.3
2 Copyright (c) 2004,2005,2006 Daniel B. Cid   <daniel.cid@gmail.com>
3                                         <dcid@ossec.net>
4
5  
6 = OSSEC, os_regex Library. =
7
8
9 Fast and simple library for regular expressions in C.
10
11 This library is designed to be simple, but support
12 the most common regular expressions. It was design
13 with intrusion detection systems in mind, where having
14 all options is not crucial, but speed is.
15
16
17 The following expressions are supported:
18     \w  ->  A-Z, a-z, 0-9 characters
19     \d  ->  0-9 characters
20     \s  ->  For spaces " "
21     \p  ->  ()*+,-.:;<=>?[] (pontuation characters)
22     \W  ->  For anything not \w
23     \D  ->  For anything not \d
24     \S  ->  For anything not \s
25     \.  ->  For anything
26
27        
28 Each regular expression can be followed by:
29
30     +  ->  To match one or more times (eg \w+ or \d+)
31     *  ->  To match zero or more times (eg \w* or \p*)
32
33     
34 We also support the "^" to match at the beginning of the text,
35 '$" to match at the end of the text and "|" to have multiple
36 expressions.