split() Operation
Syntax |
| |
---|---|---|
Semantics | Returns an array of strings. Wherever the pattern matches, the string will be split. The string fragments are stored in array Note the following behavior of regular expressions:If pattern expression | |
Substitutables |
| Can be any variable or object attribute having the type String. |
| Regular expression (see Regular Expressions for a list of valid regular expressions). An introduction into regular expressions can be found at Regular-Expressions.info. | |
| String literal. | |
Examples |
NONE
| |
Assume we have a string containing a list of customers in a string string:
Assuming that the split character is either the " |
Regular Expression | Result splittedStringArray |
---|---|
| ["Spring Corp.", ",", "Summer Ltd.", ";", "Autumn & Co.", ",", "Winter & Partners"] |
| ["Spring Corp.", "Summer Ltd.", "Autumn & Co.", "Winter & Partners"] |
Related Pages:
Related Documentation: