im slightly confused
you want to look at the whole string at once
and say the whole string evaluates to true if only one line has all uppercase?
or do you want to know which line numbers have only uppercase?
should this be true or false?
AAAAA1
do you mean only uppercase letters?
[A-Z]
or do you mean no lowercase letters?
[a-z]