split

Splits a string or string elements of the array into separate elements.

Syntax

split ( pattern_string, string_expression|array_expression )

Example 1

# csv ( split ( '::', 'ab=c::de=f::gh=i' ) ) #

Result

'ab=c', 'de=f', 'gh=i'

Example 2

# csv ( split ( '=' , split ( '::', 'ab=c::de=f::gh=i' ) ) ) #

Result

'ab', 'c', 'de', 'f', 'gh', 'i'