remove double letters

Dominic <[email protected]> Wed, 2 Feb 2005 12:00:41 -0800 (PST)
Newsgroups gmane.comp.jakarta.regexp.user
Message-ID <[email protected]>
Is there a way to create a generic regexp to remove
double letters?

Example

Gooooooogle becomes gogle

([^o])*(o)+(.*)

$1$2$3

But this code just works for the letter 'c'.
I'm looking for a regexp who remove all double
letters.

Thanks,

Dominic