I try to use the regex to check the username should start with letters and ends with at least one digit, but the following code only allows me to end with 1 digit, and I'm not sure about whether I used the * correctly, I think "[regex]*" means match at least one times [regex]
if( username.matches("^[a-zA-z]*\\d*$") ){
System.out.println("The username is valid");
}
else{
System.out.println("The username is invalid");
}