Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Info
titleAvailability

This routine is available since katl-commons 3starting with SIL Engine™ 1.0.

Syntax

...

split(str, regex)

Description

...

Excerpt

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

that will be split.

regex

string

Yes

The delimiting

Delimiting regular expression.

Return type

...

string[]


Related routines

Filter by label (Content by label)
showLabelsfalse
spacesSIL40
showSpacefalse
cqllabel = "regex" and space = "SIL"
labelsregex

Example

...

Example 1

...

Code Block
return split("boo:and:foo", ":");

Returns   { "boo", "and", "foo" }.

Example 2

...

Code Block

See also:

return split("I went to the store. I bought some milk.", "\\. ");

//period symbol is a special character in regex so it must be escaped

Returns   { "I went to the store", "I bought some milk" }.

Example 3

Code Block
return split("1:Part one2:Part two3:Part 3", "([0-9]:)");

Returns   { "Part one", "Part two", "Part 3" }.

See also

Filter by label (Content by label)
showLabelsfalse
max100
showSpacefalse
cqllabel = "string_routines"
labelsstring_routines