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