tab method

FluentRegex tab([
  1. Quantity quantity = const Quantity.oneTime()
])

======================================================================== WHITE SPACE CHARACTERS

Appends expression to match a tab character ('\u0009')

Example: var regex = FluentRegex() .tab(); expect(regex.hasMatch('hello'), false); expect(regex.hasMatch('\u0009hello'), true); expect(regex.hasMatch('hello\tall'), true);

Implementation

/// Appends expression to match a tab character ('\u0009')
///
/// Example:
/// var regex = FluentRegex()
///   .tab();
/// expect(regex.hasMatch('hello'), false);
/// expect(regex.hasMatch('\u0009hello'), true);
/// expect(regex.hasMatch('hello\tall'), true);
FluentRegex tab([Quantity quantity = const Quantity.oneTime()]) =>
    FluentRegex._copyWith(this,
        expression: '$_expression${SpecialCharacter.tab}$quantity');