From: "Peña, Botp" Date: 2008-03-04T12:01:49+09:00 Subject: Re: Split the string From: S2 [mailto:non.sto.gioando@nien.te] # Michael Fellinger wrote: # > require 'scanf' # > "3:43;SD,2:65;SD,3:50;Inc".split(',').map do |e| # > e.scanf('%d:%d;%s') # > end # > # [[3, 43, "SD"], [2, 65, "SD"], [3, 50, "Inc"]] # # but he wants all strings in his array no, if you scan the thread, the op later wanted the first 2 elements be integers. kind regards -botp