From: mitchell Date: 2006-12-21T02:56:38+09:00 Subject: Re: Grabbing quoted substrings Hi, > OK, I give up, what's the elegant method to > grab the quoted substrings in the following, > > a = 'variables="x", "y", "z", "rho", "u", "v", "w", "p/pinf", "s", "mach"' > > I want an array like, > > ["x", "y", "z", ..., "mach"] > a.scan(/"([^"]+)"/).flatten