Re: remove double letters
Kevin Rodgers <[email protected]> Wed, 2 Feb 2005 15:31:42 -0700
| Newsgroups | gmane.comp.jakarta.regexp.user |
|---|---|
| Message-ID | <[email protected]> |
Dominic writes: > 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. Wouldn't it be replace "([:alpha:])\\1+" with "\\1"? -- Kevin Rodgers