Iron Realms Entertainment
Separate a string using a set of character delimiters. Break the string using any of the given characters as a delimiter. Subsequent delimiter characters are merged and treated as one delimiter.
splitc@("abc|:|xyz", ":|") = [ "abc", "xyz" ]
Note the similarity of this function to words$()’s behavior. The following two expressions are equivalent.
words$(str$, 2, 2)
Each part of the string between delimiters in a new vector.
Join the elements of a vector with a string. The ‘glue’ is inserted between each element and the result is concatenated into a single string.
A string obtained by concatenating each element with glue$ between each.