From: David Rio Date: 2009-06-21T20:37:50+09:00 Subject: Re: replacing repetition of characters in string On Sat, Jun 20, 2009 at 10:18 PM, Morris Keesan wrote: > This problem is a little under-specified, Yes, my bad. > and it would be worth asking > exactly what your friend is trying to accomplish. > As a quick question, what should happen if the input contains THREE of the > same character?  Should "aaa" become > aaa > *aa*a > *aaa* > *a*a*a* > or something else? *aa*a, which is what Sebastian's code does. -drd