Skip to content

Instantly share code, notes, and snippets.

@dmarlow
Created July 22, 2014 15:44
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 dmarlow/2ea49c00ebc2e4e8e951 to your computer and use it in GitHub Desktop.
Save dmarlow/2ea49c00ebc2e4e8e951 to your computer and use it in GitHub Desktop.
Command Regex
private static readonly Regex CommandRegex = new Regex(@"^(?<name>[a-zA-Z]+)\s?(?<count>[0-9]?)$");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment