reluctant property

Quantity reluctant

A reluctant quantifier indicates the engine to start with the shortest possible piece of string. If no match is found it will if will add a character to check until it matches (or not)

Example: var regex = FluentRegex() .anyCharacter(Quantity.zeroOrMoreTimes().reluctant) .literal('foo'); expect(regex.findFirst('xfooxxxxxxfoo'), 'xfoo');

Implementation

Quantity get reluctant => Quantity._(_expression, MultiplicityMode.reluctant);