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