From: Michael Weller Date: 2004-07-14T21:51:28+09:00 Subject: Re: Split quoted text David A. Black wrote: >Hi -- > >On Wed, 14 Jul 2004, Michael Weller wrote: > > > >>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 ... >> >> > >p '"this is" "my text"'.scan(/"[^"]+"/) ># => ["\"this is\"", "\"my text\""] > > >David > > > Yes, I think that's exactly what I searched... Thanks a lot! Michael