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