Skip to content

Instantly share code, notes, and snippets.

@aj07mm
Created August 14, 2018 00:46
Show Gist options
  • Save aj07mm/d934dc1bdc1fd68843a66e4f0ad40366 to your computer and use it in GitHub Desktop.
Save aj07mm/d934dc1bdc1fd68843a66e4f0ad40366 to your computer and use it in GitHub Desktop.
regex_greed.txt
+-------------------+-----------------+------------------------------+
| Greedy quantifier | Lazy quantifier | Description |
+-------------------+-----------------+------------------------------+
| * | *? | Star Quantifier: 0 or more |
| + | +? | Plus Quantifier: 1 or more |
| ? | ?? | Optional Quantifier: 0 or 1 |
| {n} | {n}? | Quantifier: exactly n |
| {n,} | {n,}? | Quantifier: n or more |
| {n,m} | {n,m}? | Quantifier: between n and m |
+-------------------+-----------------+------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment