Compile (and verify) a regular expression into an internal format for evaluation.
This function must be called before regExec is executed. It the input string does not match a valid regular expression then an error is returned.
- Parameters
-
pRegex | [ in ] The wide string regular expression |
modifiers | [ in ] Only P6MOD_SKIPWHITESPACE and P6MOD_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. |
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., '(?=' '(?:' ). |