The tr operator does what you want, except it squashes all duplicates, not just two. For reference though:s/(.)\1/$1/g;
tr/a-zA-Z//s;
In reply to Re: removing duplicate letters
by plaid
in thread removing duplicate letters
by eduardo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |