Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 24.0

Div
Classe2e-refDiv
Rp

Syntax
Code Block
languagenone
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.

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

This example results in result = true.

Code Block
languagenone
set s1 = "X is found by the match() operation." 
set result = s1.match("X.+");