in reply to RE: Re: removing duplicate lettersin thread removing duplicate letters
s/([a-zA-Z])\1/$1/g;
if you want to talk about pedantic, your letters may not be the letters everyone else is using, so to take the locale into effect, you could do something like the following: