From: Peter Bunyan Date: 2008-03-20T01:07:56+09:00 Subject: Re: Split string at spaces, but not when inside quotation marks? Sebastian Hungerecker wrote: > Peter Bunyan wrote: >> Is there already a built-in method to do this > > require 'shellwords' > Shellwords.shellwords 'Hello "wo rld" how "are \" you today"' > => ["Hello", "wo rld", "how", "are \" you today"] > > HTH, > Sebastian Mmm, that's yummy! Thanks, I'm using this now. Thanks to all of your replies, you all rock hard. -- Posted via http://www.ruby-forum.com/.