NAME
DoubleChop — Return a string after taking out first and last characters.
SYNOPSIS
DoubleChop StringVariable ?Count?
DESCRIPTION
Return Value
Same as input string but with characters removed from start and end.
Arguments
StringVariableString to double chop. Can be either a value or @VarName (will upvar and read/write).
CountOptional. How many characters to remove from the right and how many to remove from the left. Default is 1.
More Info
Useful for something like removing brackets from a string.

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
% set MyString "{something}"
{something}
% DoubleChop $MyString
something
% set MyString "{{something}}"
{something}
% DoubleChop @MyString 2
something
% puts $MyString
something
SEE ALSO
ChopLeft, ChopRight, string
KEYWORDS
conversion, extraction, string, text, transform