7.23.1 compile Method

Compiles a regular expression into an internal format.
Syntax
rgexp.compile(pattern)
Arguments
- rgexp
- A RegularExpression object. Can be a variable name or a literal. Required.
- pattern
- A string expression containing a regular expression pattern to be compiled. Required.
Remarks
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.
Copyright © 2000 Chili!Soft
|