I try to use the following expression to check whether the password is a combination of number and letter despite the order of letter and number
password.matches("[a-zA-z]{1,}[0-9]{1,}")
but the above code would check with the order letter goes first, then number comes later
like the password would be acceptable if the password looks like "hello1213" and "123hello"