The regular expressions are stored by the engine, not in literal form, but in special internal representation. This significantly accelerates the matching operations. Upon changing the
Expression property it is automatically converted when you call
RegExpr.Compile method for the enforced expression conversion.
|RegExprObj||An expression, variable or parameter that specifies a reference to a RegExpr object|
The method is applied to the following object:
The following example demonstrates how to use the
RegExpr.Compile method to force expression conversion and to get conversion errors that occur during compilation.