Language Reference |
See Also Applies To
Compiles a regular expression into an internal format.
The compile method syntax has these parts:
Part Description rgexp Required. A Regular Expression object. Can be a variable name or a literal. pattern Required. A string expression containing a regular expression pattern to be compiled.
The compile method converts pattern into an internal format for faster execution. This allows for more efficient use of regular expressions in loops, for example.