greedy property
Quantity
greedy
A greedy quantifier indicates the engine to start with the whole string. If no match is found it will if will reduce a character to check until it matches (or not)
Example: var regex = FluentRegex() .anyCharacter(Quantity.zeroOrMoreTimes().greedy) .literal('foo'); expect(regex.findFirst('xfooxxxxxxfoo'), 'xfooxxxxxxfoo');
Implementation
Quantity get greedy => Quantity._(_expression, MultiplicityMode.greedy);