How can I remove repeated characters but leave two of them?

Posted by kplla on Stack Overflow See other posts from Stack Overflow or by kplla
Published on 2010-04-27T03:28:31Z Indexed on 2010/04/27 3:33 UTC
Read the original article Hit count: 172

Filed under:
|
|

If there are more than 2 characters "Hiiiiiii My frieeend!!!!!!!"

I need to be reduced to "Hii My frieend!!"

Please undestand that in my language there are many words with double chars. Thnx in advance

kplla

© Stack Overflow or respective owner

Related posts about repeated

Related posts about character