From: Mickael Faivre-Macon Date: 2009-01-29T01:24:14+09:00 Subject: Re: regexp multiple matches Sure, that's what I've just done :) Just wondering. Thanks anyway. Mickael. Andrew Timberlake wrote: > On Wed, Jan 28, 2009 at 5:00 PM, Mickael Faivre-Macon > wrote: > >> >> My question is why ;5,7 is not matched ? >> > which >> Posted via http://www.ruby-forum.com/. >> >> > What about tackling it from a completely different angle > > s = "5,1;5,7;3,2" > pairs = s.split(';') #=> ["5,1", "5,7", "3,2"] > pairs.each do |pair| > pair.split(',') #=> ["5", "1"] etc > end > > -- > Andrew Timberlake > http://ramblingsonrails.com > http://www.linkedin.com/in/andrewtimberlake > > "I have never let my schooling interfere with my education" - Mark Twain -- Posted via http://www.ruby-forum.com/.