notLower static method

Pattern notLower([
  1. int? min,
  2. int? max
])

Matches any non-lowercase character

Implementation

static Pattern notLower([int? min, int? max]) {
  final node = nodes.CharacterClass(
    negated: true,
    members: [nodes.Range(from: 'a', to: 'z')],
  );
  final pattern = Pattern._(node);
  return (min != null) ? pattern.repeat(min, max) : pattern;
}