will do the trick of half-ing each repeated occurence and rounding them up. So "aaabbbb" will become "aabb".s/((.)\2*)\1/$1/g
In reply to Re: Replacing with multiple occurrences.
by Skeeve
in thread Replacing with multiple occurrences.
by maithree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |