From: Alexander Kellett Date: 2004-07-14T21:35:26+09:00 Subject: Re: Split quoted text something like this? b=[]; t.scan(/(\".*?\")(?:\s*)/) { b << $1 }; p b i'm sure there's something better though... Alex On Wed, Jul 14, 2004 at 09:27:03PM +0900, Michael Weller wrote: > Hi! > Can anybody help me with following, it seems like I can find a solution > that's shorter than 50LOC and I thought there must be a smarter way to > do it... > My input would be something like "\this is\" \"my text\"" and I want to > have an array containing ["\"this is\"", "\"my text\""]. > I know it can't be that hard, but ... > > Thanks for any reply! > > Michael > > mvg, Alex -- When women love us, they forgive us everything, even our crimes; when they do not love us, they give us credit for nothing, not even our virtues. -- Honor'e de Balzac