Page tree
Skip to end of metadata
Go to start of metadata
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