|
Compiles a regular expression into an internal format.
rgexp.compile(pattern)
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.
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 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.