|
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 |
|
|
Some Examples
Assume we have a string containing a list of customers in a string string:
"Spring Corp., Summer Ltd.; Autumn & Co., Winter & Partners"
Assuming that the split character is either the "," or the ";", you can split this string with the following results:
|
Regular Expression |
Result splittedStringArray |
|---|---|
|
|
JSON
|
|
|
JSON
|
Related Content
Related Documentation: