To turn "abbcccd" into "abccd":
s/(.)\1/$1/g; # add /s to include newlines
y///cs; # y == tr, but shorter :-)