From: Marcus Bristav Date: 2006-09-29T18:50:17+09:00 Subject: Re: Regexp help On 9/29/06, Park Heesob wrote: > > str = "2h 3m" # or somthing > str.scan(/(\d+)(\w*)/).sort_by{|x|x[1]}.collect{|x|x[0].to_i} > > Regards, > > Park Heesob > Nice one, thanks a lot! /Marcus