uppercaseCharLength method
Calculates the number of uppercase characters in the given value.
Parameters:
value
The string to be evaluated.
Returns:
The count of uppercase characters in the string.
Implementation
int uppercaseCharLength(String value) {
return regex.allMatches(value).length;
}