notWord static method
Matches any non-word character
Implementation
static Pattern notWord([int? min, int? max]) {
final node = nodes.CharacterClass(
negated: false,
members: [nodes.Escape('not-word')],
);
final pattern = Pattern._(node);
return (min != null) ? pattern.repeat(min, max) : pattern;
}