s = "ZBBBCZZ" x = s.scan(/((.)\2*)/).map{|v|v[0]}
In reply to Re: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)
by tadman
in thread Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |