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