Split

Description

Split a string up into component pieces.

Type

LIST {STRING}

Arguments

Type

Meaning

1

STRING

the primary string

2

STRING

the separator string

Evaluation

This function returns a list of the strings which are contained within the primary string and separated by the separator string. Where ambiguity exists the left most occurrence of the separator string is used.

Comments

It is an error for the separator string to be the empty string.

 
Split("ABabcdefABcdABcdef", "AB") = { "", "abcdef", "cd", "cdef" }
Split("ResA^MyAccount.Inflow", "^") = { "ResA", "MyAccount.Inflow" }