On 9/29/06, Park Heesob <phasis68 / hotmail.com> 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