in reply to Re^2: remove first and last character of string
in thread remove first and last character of string
... 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: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: remove first and last character of string (updated)
by hippo (Archbishop) on Oct 14, 2020 at 09:09 UTC | |
|
Re^4: remove first and last character of string (updated)
by flieckster (Scribe) on Oct 15, 2020 at 00:47 UTC | |
by hippo (Archbishop) on Oct 15, 2020 at 08:35 UTC |