Page tree
Skip to end of metadata
Go to start of metadata

Syntax
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.

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

This example results in result = true.

set s1 = "X is found by the match() operation." 
set result = s1.match("X.+");
  • No labels