This module offers matching operations using regular expressions based on the powerful PCRE library. A text file containing regular expressions categorized in groups is compiled when the module is loaded, the resulting PCRE objects are stored in an array. A function to match a string or pseudo-variable against any of these groups is provided. The text file can be modified and reloaded at any time via a RPC command. The module also offers a function to perform a PCRE matching operation against a regular expression provided as function parameter. For a detailed list of PCRE features read the man page of the library.
| Parámetro | Tipo | Descripción |
|---|---|---|
| file | string | 3.2. max_groups (int) 3.3. group_max_size (int) 3.4. pcre_caseless (int) 3.5. pcre_multiline (int) 3.6. pcre_dotall (int) 3.7. pcre_extended (int) |
| max_groups | int | 3.3. group_max_size (int) 3.4. pcre_caseless (int) 3.5. pcre_multiline (int) 3.6. pcre_dotall (int) 3.7. pcre_extended (int) |
| group_max_size | int | 3.4. pcre_caseless (int) 3.5. pcre_multiline (int) 3.6. pcre_dotall (int) 3.7. pcre_extended (int) |
| pcre_caseless | int | 3.5. pcre_multiline (int) 3.6. pcre_dotall (int) 3.7. pcre_extended (int) |
| pcre_multiline | int | 3.6. pcre_dotall (int) 3.7. pcre_extended (int) |
| pcre_dotall | int | 3.7. pcre_extended (int) |
| pcre_extended | int | 3.1. file (string) |
| file | string | Text file containing the regular expression groups. It must be set in order to enable the group matching function. |
| max_groups | int | Max number of regular expression groups in the text file. |
| group_max_size | int | Max content size of a group in the text file. |
| pcre_caseless | int | If this options is set, matching is done caseless. It is equivalent to Perl's /i option, and it can be changed within a pattern by a (?i) or (?-i) option setting. |
| pcre_multiline | int | By default, PCRE treats the subject string as consisting of a single line of characters (even if it actually contains newlines). The "start of line" metacharacter (^) matches only at the start of the |
| pcre_dotall | int | If this option is set, a dot metacharacter in the pattern matches all characters, including those that indicate newline. Without it, a dot does not match when the current position is at a newline. Thi |
| pcre_extended | int | If this option is set, whitespace data characters in the pattern are totally ignored except when escaped or inside a character class. Whitespace does not include the VT character (code 11). In additio |
Copyright © 2009 Iñaki Baz Castillo