Is there any common/standard way to check if string
contain at least one alphabetic and one numeric char. Like in this cases:
checkString("AAAA") = false
checkString("A2B2") = true
checkString("2222") = false
I wanted to use StringUtils.isAlphanumeric()
but in this case: StringUtils.isAlphanumeric("AAAA")
it gives true
.
I know that it can be written with iteration over chars, but maybe there is some other way to do this.