alphabetic property

RegExp alphabetic
final

Matches alphabetic strings (only uppercase/lowercase letters).

  • Examples (✅ Valid): abcDEF
  • Examples (❌ Invalid): abc123, abc!

Use Case: Names, language-only fields.

Implementation

static final RegExp alphabetic = RegExp(r'^[a-zA-Z]+$');