Skip to main content
Skip table of contents

match() Operation

Syntax
NONE
set result = aString.match(regExpPattern)
SemanticsReturns true, if the pattern matches the whole string aString.
SubstitutablesaString Can be any variable or object attribute having the type String.  
regExpPattern Regular expressions (see Regular Expressions for a list of valid regular expressions). An introduction into regular expressions can be found at http://www.regular-expressions.info/.
Examples

This example results in result = false.

NONE
set s1 = "The match() operation doesn't find the X, does it?" 
set result = s1.match("X.+");

This example results in result = true.

NONE
set s1 = "X is found by the match() operation." 
set result = s1.match("X.+");
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.