Availability
This routine is available starting with katl-commons 3.0.
Syntax
split(str, regex)
Description
Returns the array of strings computed by splitting this string around matches of the given regular expression.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
str | string | Yes | Specifies the string which will be split |
regex | string | Yes | The delimiting regular expression |
Return type
string[]
Related routines
-
matchStart (Simple Issue Language™)
-
split (Simple Issue Language™)
-
matchText (Simple Issue Language™)
-
matches (Simple Issue Language™)
-
matchEnd (Simple Issue Language™)
Example
Example 1
return split("boo:and:foo", ":");
Returns { "boo", "and", "foo" }.
See also