RegExpr.LastError property to get the code of the last error that occurred during the regular expression compilation. To get the error description use the
ErrorMsg property. To get the position in the regular expression where the error occurred use the
|RegExprObj||An expression, variable or parameter that specifies a reference to a RegExpr object|
The property is applied to the following object:
The error code.
This property returns 0 if regular expression compiled successfully.
The following example demonstrates how to use the
RegExpr.Compile method to force expression conversion and to get conversion errors that occur during compilation.