Skip to content

Instantly share code, notes, and snippets.

@mattes
Created November 1, 2012 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattes/3994595 to your computer and use it in GitHub Desktop.
Save mattes/3994595 to your computer and use it in GitHub Desktop.
Regular Expression for command line parameters
--command value
--command "another value"
/\s*("[^"]+"|[^\s"]+)/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment