From: Xavier Noria Date: 2007-03-17T00:05:37+09:00 Subject: Re: Splitting A String On Mar 16, 2007, at 3:53 PM, Brendan Baldwin wrote: > s = 'a quick "brown fox" jumped "over the lazy" dog' > a = s.split(/"([^"]+)"/).map{|s|s.strip} Preserving part of the separator is a good trick, but the split itself is wrong: ["a quick", "brown fox", "jumped", "over the lazy", "dog"] -- fxn