Rather than chopping twice a safer way would be to chomp first then chop.
But, I like the regex solutions better than chopping
Mike
In reply to Re^2: how to chop last character from a string
by bioMan
in thread how to chop last character from a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |