I want to match an alphanumeric string containing at least one letter and one number. Is there an easy way to combine the following into a single regular expression?
strValue.matches("[A-Z0-9]+") && strValue.matches(".*[AZ].*") && strValue.matches(".*[0-9].*")
source share