


Drop the last character of a string:
eval: string::extract ("fubar", 0, THE (string::length "fubar" - 1));
"fuba"
Another way:
eval: regex::find_first_group 1 ./^(.*).$/ "fubar";
"fuba"
Drop the last two characters of a string:
eval: string::extract ("fubar", 0, THE (string::length "fubar" - 2));
"fub"
Another way:
eval: regex::find_first_group 1 ./^(.*)..$/ "fubar"; "fub"


