From: Thiago Arrais Date: 2006-03-13T20:19:30+09:00 Subject: Re: What's the best way to split this kind of string? On 3/13/06, Ross Bamford wrote: > Maybe something like: > > s.scan(/(\d)(\1*)/).map! { |e| e.join } > # => ["111", "22", "3", "1", "33"] Hmm.... Clever -- Thiago Arrais