How do I remove consecutive pairs of characters?
To turn ``abbcccd'' into ``abccd'':
s/(.)\1/$1/g;
Back to
How do I unescape a string?
Forward to
How do I expand function calls in a string?
Up to
the perlfaq4 manpage