next up previous contents
Next: exec Up: Methods Previous: Methods   Contents

compile

Description

Compiles a regular expression. Using this method to change the search string dynamicly.


Syntax

rgexp.compile(pattern, [switch])


Parameters

pattern
The regular expression pattern to use
switch
Optional. Available switches are:
i
ignore case
g
global search for all occurrences of pattern
m
multiline
gi
global search, ignore case


Returns

A Boolean value, true for success, false for failure




Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.