:regerror

Command: :regerror


Description
:regerror will decode the integer error code and return the related
error description.
Parameters
in: regex: a regular expression generated by "regcomp_"
integer code of what went wrong.
out: string of error description.

Author
Diesmann & Hehl
Bugs
no known ;-)
Synopsis
regex integer -> string
Examples
preparation:
(\() regcomp_ -> 8 False
pop
now there's a wrong regex and an errorcode on the stack
:regerror = -> Unmatched ( or \(

File
lib/sli/regexp.sli
Diagnostics
no errors raised - this _is_ a command to check an error!
Remarks

See man regerror for further details on POSIX regerror.
Note that the command "regcomp" performs automatic error checking. You should
probably use "regcomp" not "regcomp_".

FirstVersion