Next: , Up: Functions   [Contents][Index]


4.1 Compile

Function: number pcre_compile (string pattern)

Compiles regular expression pattern and returns regexp descriptor, a numeric value that will be used to refer to that regular expression when calling other pcre_ functions.

If the regular expression is erroneous and cannot be compiled, the function throws e_regcomp exception (see Built-in Exceptions in Mailfromd Manual).