in reply to Re: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)
in thread Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)
I like the scan/map solution of ruby but I must admit too, that the javascript solution comes out cleanest :)
"ZBBBCZZ".match(/((.)\2*)/g)
|
---|
In Section
Meditations