Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleAvailability

This routine is available starting with SIL Engine™ 1.0.

Syntax

split(str, regex)

...

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

Example 2

Code Block
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

...