letterRegExp property

RegExp letterRegExp
final

Regular expression pattern to validate string.

This pattern matches strings that consist of at least one letter (uppercase or lowercase).

Example:

static final RegExp letterRegExp = RegExp('[a-zA-Z]');
  • Matches: 'a', 'A', 'abc', 'XYZ', 'a1b2c'
  • Does not match: '123', '+-'

Implementation

static final RegExp letterRegExp = RegExp('[a-zA-Z]');