From: Dave Bass Date: 2008-07-13T06:28:14+09:00 Subject: Re: regular expressions help phlip wrote: >> 'hi hello "hello world" hey yo' >> >> should return >> [hi, hello, hello world,hey,yo] > > 'hi hello "hello world" hey yo'.scan(/\w+/) > > => ["hi", "hello", "hello", "world", "hey", "yo"] But this returns "hello world" as two entries, not one as required. -- Posted via http://www.ruby-forum.com/.