CompileSubstEx

CompileSubstEx — an alternate interface to CompileSubst.

Synopsis

static Regex.CompileSubstEx(pattern, substitution, flags?=0)
    

Arguments

pattern

Normally, a string, but optionally a buffer. If a buffer, it may contain NUL characters.

substitution

Normally, a string, but optionally a buffer. If a buffer, it may contain NUL characters.

flags

A string.

Returns

On success, an instance of pcrs_job. On failure, an error list with three elements:

  • car(errlist) = a numeric return code from the failing function

  • cadr(errlist) = a character position in the pattern where the error occurred, or 0.

  • caddr(errlist) = an error message, as a human-readable string