Skip to content

Instantly share code, notes, and snippets.

@vtypal
Created November 19, 2009 15:23
Show Gist options
  • Save vtypal/238817 to your computer and use it in GitHub Desktop.
Save vtypal/238817 to your computer and use it in GitHub Desktop.
http://mikenaberezny.com/2008/04/28/parsing-quoted-strings-in-ruby/
http://henrik.nyh.se/2008/03/flickr-style-tag-splitting-in-ruby
Shellwords::shellwords('foo "bar baz" qux')
=> ["foo", "bar baz", "qux"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment