NAME
SplitAndTrim — Both splits a string and also does a trim on each element.
SYNOPSIS
SplitAndTrim StringVariable ?SplitValue? ?TrimValue?
DESCRIPTION
Return Value
List of same elements would get from a split but trimmed as well.
Arguments
StringVariableString value to be split and trimmed. Can be either a value or @VarName (will upvar and read/write).
SplitValueWhat to split on.
TrimValueWhat to trim.
More Info
Note that any empty strings produced by the split are not added to the return list.

Note that arguments of the form XxxVariable can take either a normal value or the name of a variable to read/write, prefixed by @. See About Using @ for details.


For information regarding exceptions / errors, see here.
EXAMPLES
% SplitAndTrim "one ,two, three" ","
one two three
% SplitAndTrim "one    two    three"
one two three
% set MyString "one    two    three"
one two three
% SplitAndTrim @MyString
one two three
% puts $MyString
one two three
SEE ALSO
split, string
KEYWORDS
conversion, modify, string, transform