> '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"] Sorry I couldn't find a more verbose way. Maybe there is one!