Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Regular Expression Object compile Method

Compiles a regular expression into an internal format.

Syntax: JScript Regular Expression Object compile Method

rgexp.compile(pattern)

Arguments: JScript Regular Expression Object compile Method

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: JScript Regular Expression Object compile Method

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.