... the example provided isn't removing quotes, it seems to remove most of the string ...I don't understand. The example code removes balanced quotes from the ends of a string. What return do you want from '"654321_1111"'?
Update: Note that this substr solution removes any characters from the ends of a string, whereas this solution removes only balanced double-quotes from the ends of a string, and this solution removes only double-quotes, balanced or not, from the ends of a string. It's a question of exactly what you want.
Give a man a fish: <%-{-{-{-<
In reply to Re^3: remove first and last character of string (updated)
by AnomalousMonk
in thread remove first and last character of string
by flieckster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |