From: Andrew Stewart Date: 2007-03-16T23:02:36+09:00 Subject: Re: Splitting A String Hello Jan, On 16 Mar 2007, at 13:47, Jan Friedrich wrote: > Andrew Stewart wrote: >>> 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' ] ? > > > require 'csv' > CSV.parse_line('a quick "brown fox" jumped "over the lazy" dog', ' ') Nice! Thank you! Andy Stewart