Skip to content

Instantly share code, notes, and snippets.

@tom-lord
Created March 19, 2015 22:39
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 tom-lord/8c54347872788967c2de to your computer and use it in GitHub Desktop.
Save tom-lord/8c54347872788967c2de to your computer and use it in GitHub Desktop.
All regular expression quantifiers (repeaters) are very similar...
/a/ == /a{1}/
/a?/ == /a{0,1}/
/a*/ == /a{0,}/
/a+/ == /a{1,}/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment