Closed lablnet closed 5 years ago
I'm curious about the hasLowercase
and hashUppercase
method implementations.
Should we consider only about the English string lowercase/uppercase conversion?
If possible, we can change into following regular expression:
hasUppercase
:
/([A-Z])/
hasLowercase
:
/([a-z])/
I'm curious about the
hasLowercase
andhashUppercase
method implementations.Should we consider only about the English string lowercase/uppercase conversion?
If possible, we can change into following regular expression:
hasUppercase
:/([A-Z])/
hasLowercase
:/([a-z])/
We need to keep in mind encoding as well, in that case UniCode
Consider the following string
#-<ae|9_+0a*a!Q?@(z,3R>.BAb)^%R&*+~RG:$
Upper Case
Regx
same regx use in LowerCase