CompileSubst

CompileSubst — compiles a substitution pattern.

Synopsis

static Regex.CompileSubst(pattern)
    

Arguments

pattern

A pattern of the form s/pattern/substitution/flags.

Returns

On success, an instance of pcrs_jobs. 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

Description

This method compiles a pattern of the form s/pattern/substitution/flags.