You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Syntax
set aBoolean = aString.startsWith(regExpPattern)
set aBoolean = aString.startsWith(LITERAL)
Semantics startsWith() returns true, if the string aString starts with the string returned by the regular expression or represented by the literal. In all other cases, false is returned.
SubstitutablesaBoolean Can be any variable or object attribute having the type Boolean.
aString 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/.
LITERAL String literal.
Examples
set aBoolean = aString.startsWith("Act"); 
set aBoolean2 = aString2.startsWith(aString3.substring(0, 3)); 
set aBoolean3 = aString3.startsWith("[A-Za-z]");
  • No labels