nonWhiteSpace method
Appends non-whitespace character, same as ^\s
Example: var regex = FluentRegex() .nonWhiteSpace(); expect(regex.hasMatch(' '), false); expect(regex.hasMatch('\u0009'), false); expect(regex.hasMatch('\n'), false); expect(regex.hasMatch('\x0B'), false); expect(regex.hasMatch('\f'), false); expect(regex.hasMatch('\r'), false); expect(regex.hasMatch('h'), true);
Implementation
FluentRegex nonWhiteSpace([Quantity quantity = const Quantity.oneTime()]) =>
FluentRegex._copyWith(this,
expression:
'$_expression${SpecialCharacter.noneWhiteSpace}$quantity');