NAME
SplitNTimes — Like split, except stops after a certain number of splits.
SYNOPSIS
SplitNTimes StringValue SplitChars Count
DESCRIPTION
Return Value
List where first n-1 elements are what you would have got from using split. Last element is remainder of string.
Arguments
StringValueString to split.
SplitCharsCharacters to split on.
CountHow many times to split.
More Info
This command is basically the same as split except it takes a count parameter that gives the max number of splits to make.

If there is still some part of the string left over after the last split then that will be returned as the last element of the list (see example).


For information regarding exceptions / errors, see here.
EXAMPLES
% SplitNTimes "one,two,three" , 1
one two,three
SEE ALSO
textutil::split, split
KEYWORDS
list, string