From: Brendan Baldwin Date: 2007-03-16T23:53:09+09:00 Subject: Re: Splitting A String ------=_Part_44353_9086261.1174056786372 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline s = 'a quick "brown fox" jumped "over the lazy" dog' a = s.split(/"([^"]+)"/).map{|s|s.strip} On 3/16/07, Andrew Stewart wrote: > > Hello, > > What's a (good) way to convert this: > > 'a quick "brown fox" jumped "over the lazy" dog' > > into this: > > [ 'a', 'quick', 'brown fox', 'jumped', 'over the lazy', 'dog' ] ? > > Thanks! > > Regards, > Andy Stewart > > ------=_Part_44353_9086261.1174056786372--