notLetter static method
Matches any non-letter character
Implementation
static Pattern notLetter([int? min, int? max]) {
final node = nodes.CharacterClass(
negated: true,
members: [
nodes.Range(from: 'A', to: 'Z'),
nodes.Range(from: 'a', to: 'z'),
],
);
final pattern = Pattern._(node);
return (min != null) ? pattern.repeat(min, max) : pattern;
}