Skip to content

Instantly share code, notes, and snippets.

@toddmotto
Created March 31, 2014 12:04
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 toddmotto/9890835 to your computer and use it in GitHub Desktop.
Save toddmotto/9890835 to your computer and use it in GitHub Desktop.
AngularJS ng-options RegExp
/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment