addWordChars method

CharacterSet addWordChars()

See SpecialCharacter.wordChar Example: var regex=FluentRegex().characterSet(CharacterSet().addWordCharacters()); expect(regex.hasMatch('a'),true); expect(regex.hasMatch('Z'),true); expect(regex.hasMatch('1'),true); expect(regex.hasMatch('!'),false);

Implementation

CharacterSet addWordChars() {
  _sets.add(SpecialCharacter.wordChar);
  return this;
}