Created
August 14, 2018 00:46
-
-
Save aj07mm/d934dc1bdc1fd68843a66e4f0ad40366 to your computer and use it in GitHub Desktop.
regex_greed.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+-------------------+-----------------+------------------------------+ | |
| 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
https://stackoverflow.com/questions/2301285/what-do-lazy-and-greedy-mean-in-the-context-of-regular-expressions