|
Siebel eScript Language Reference > Siebel eScript Commands >
RegExp Object Properties
The Siebel ST and Siebel T eScript engines support the following RegExp Object properties. Throughout this section, regexp is used to represent a RegExp object instance.
RegExp global Property
This read-only property indicates the value of the global attribute of an instance of the RegExp object. Syntax
regexp.global
Usage
This property has a value of true if "g" is an attribute of the regular expression pattern being used, else its value is false. NOTE: The global attribute of a RegExp instance can be changed with the RegExp compile() method.
Example
// Create RegExp instance with global attribute. var pat = /^Begin/g; //or var pat = new RegExp("^Begin", "g"); //Then pat.global == true.
See also
RegExp compile() Method RegExp ignoreCase Property
This read-only property indicates the value of the ignoreCase attribute of an instance of the RegExp object. Syntax
regexp.ignoreCase
Usage
This property has a value of true if "i" is an attribute of the regular expression pattern being used, else its value is false. NOTE: The ignoreCase attribute of a RegExp instance can be changed with the RegExp compile() method.
Example
// Create RegExp instance with ignoreCase attribute. var pat = /^Begin/i; //or var pat = new RegExp("^Begin", "i"); //Then pat.ignoreCase == true.
See also
RegExp compile() Method RegExp multiline Property
This read-only property indicates the value of the multiline attribute of an instance of the RegExp object. Syntax
regexp.multiline
Usage
This property has a value of true if "m" is an attribute of the regular expression pattern being used, else its value is false. The multiline property determines whether a pattern search is done in a multiline mode. NOTE: The multiline attribute of a RegExp instance can be changed with the RegExp compile() method.
Example
// Create RegExp instance with multiline attribute. var pat = /^Begin/m; //or var pat = new RegExp("^Begin", "i"); //Then pat.multiline == true.
See also
RegExp compile() Method RegExp source Property
This read-only property stores the regular expression pattern being used to find matches in a string, not including the attributes. Syntax
regexp.source
Usage
This read-only property stores the regular expression pattern being used to find matches in a string, not including the attributes. NOTE: The source attribute of a RegExp instance can be changed with the RegExp compile() method.
Example
var pat = /t.o/g; // Then pat.source == "t.o"
See also
RegExp compile() Method
|