Skip to content

Instantly share code, notes, and snippets.

@meskarune
Created September 12, 2012 23:25
Show Gist options
  • Save meskarune/3710726 to your computer and use it in GitHub Desktop.
Save meskarune/3710726 to your computer and use it in GitHub Desktop.
Regular expressions
A regular expression may be followed by one of several repetition operators:
? The preceding item is optional and matched at most once.
* The preceding item will be matched zero or more times.
+ The preceding item will be matched one or more times.
{n} The preceding item is matched exactly n times.
{n,} The preceding item is matched n or more times.
{,m} The preceding item is matched at most m times.
{n,m} The preceding item is matched at least n times, but not more than m times.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment