Method RegEx():getLastError() Foundation
Returns the last error code.
:getLastError() --> nErrorCode
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.
Retrieves the numeric error code from the most recent operation. Call the method :getLastMessage() to retrieve a textual description of the error.
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.