upperCaseStr top-level property
A regular expression pattern that matches strings containing only uppercase letters (A–Z).
This pattern ensures the entire string is composed of one or more uppercase English alphabet characters with no digits, symbols, or whitespace.
Implementation
String upperCaseStr = r'^[A-Z]+$';