Regexp - (Quantifier|Cardinality Indicators)
About
A quantifier defines the number of times that:
- grouped (or not)
may be seen.
Algorithm / Behaviors
It has three behaviors:
- a Greedy one: match longest possible string. This is the default regular expression behavior.
- a Lazy one: match shortest possible string. Match as few as possible, repeat as few times as possible
- a Possessive one.