Method RegEx():getLastError() Foundation

Returns the last error code.

Syntax
:getLastError() --> nErrorCode
Return

The numeric error code. A value of 0 means no error occurred. Negative values indicate errors generated by the PCRE subsystem. A value of 999 indicates a generic error. Other Positive values greater than 0 indicate compilation errors. A full list of error codes can be found here: https://www.pcre.org/original/doc/html/pcreapi.html#SEC12.

Description

Retrieves the numeric error code from the most recent operation. Call the method :getLastMessage() to retrieve a textual description of the error.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.