From: Dan Date: 2008-02-20T16:00:14+09:00 Subject: Re: split string ------=_Part_21670_19359633.1203490821038 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm not sure if i really understand your question but if 3:43,2:65,3:50 is actually a string i.e. "3:43,2:65,3:50" then "3:43,2:65,3:50".gsub(':',' ').split(',') will return an array containing: ["3 43", "2 65", "3 50"] On Feb 20, 2008 5:22 PM, Sijo Kg wrote: > Hi > > I have @selected_ciid_and_asso_types ( its content is > , ) > How can i split it like > > 3 43 > 2 65 > 3 50 > > These are actually two columns of a table..If i get it like above I can > directly save it to database > > Sijo > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_21670_19359633.1203490821038--