nonWordChar method
Appends non-letters or digits, same as ^\w
Example: var regex = FluentRegex().nonWordChar(); expect(regex.hasMatch('l'), false); expect(regex.hasMatch('W'), false); expect(regex.hasMatch('5'), false); expect(regex.hasMatch('_'), false); expect(regex.hasMatch('%'), true);
Implementation
FluentRegex nonWordChar([Quantity quantity = const Quantity.oneTime()]) =>
FluentRegex._copyWith(this, expression: '$_expression\\W$quantity');