The operator split() splits string1 at each occurence of the regular expression string2 (in POSIX syntax), and returns the list of segments in list. If string2 is omitted, the list is split at each carriage return.
Prototype
list <-- split ( string [ , string2 ] )
Examples
shrink(split("axxxbxxc","x+"),":"); a:b:cglobal $table="a1 b1\na2 b2"; element TABLE content: select ( element ROW content: ( select element COL content: $c from $c in split($r, " ") ) ) from $r in split($table) ;<TABLE>
<ROW>
<COL>
a1
</COL><COL>
b1
</COL>
</ROW><ROW>
<COL>
a2
</COL><COL>
b2
</COL>
</ROW>
</TABLE>