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

Compare with Current View Page History

Version 1 Next »

Syntax
set splittedStringArray = aString.split(regExpPattern)
set splittedStringArray = split(LITERAL, regExpPattern)
SemanticsReturns an array of strings. Wherever the pattern matches the string will be split. The string fragments are stored in the array splittedStringArray. The state of the current string is not changed.
SubstitutablesaString Can be any variable or object attribute having the type String.  
regExpPattern Regular expression (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 splittedStringArray = stringSet.s1.split("\S+");
  • No labels