FYI this is just RLE, with very odd requirements for the output.

UPDATE: Yes, Run Length Encoded.

--
I'm not belgian but I play one on TV.


In reply to Re: (golf) Collapse repetitions within a string by belg4mit
in thread (golf) Collapse repetitions within a string by Corion

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":