in reply to Re: Replacing with multiple occurrences.
in thread Replacing with multiple occurrences.

Quite complicated, isn't it? As physi already stated, a simple:
s/((.)\2*)\1/$1/g
will do the trick of half-ing each repeated occurence and rounding them up. So "aaabbbb" will become "aabb".