Compile (and verify) a regular expression into an internal format for evaluation.
This function must be called before regExec is executed. A modifier can be passed in to ignore whitespace that appears in the regex (e.g., '( a | b | c)' is the same as '(a|b|c)'. This is similar to Perl's '/x' modifier.
- Parameters
-
pRegex | [ in ] The narrow string regular expression |
modifiers | [ in ] Only P6MODIFIER_SKIPWHITESPACE and P6MODIFIER_NULL are valid values. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize was not made before this call. |
P6R::eInvalidArg | pRegex is NULL, or modifier set to an unsupported combination./td> |
P6R::eNoMemory | Insufficent memory to process the regex. |
P6R::eUnbalancedParens | Not every openning parenthesis has a mathing closing one. Includes all Perl types of open parenthesis (e.g., '(?=' '(?:' ). |