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', ' ')


regards
Jan

-- 
Posted via http://www.ruby-forum.com/.