/^[a-z]+[0-9]*$/igm
Tom //valid
tom12123 //valid
12tom //invalid
to12m //invalid
T23 //valid
T //valid but I want a minimum of two characters.
/^([a-z]+[0-9]*){2,}$/igm
Tom //valid
tom12123 //valid
12tom //invalid
to12m //should be invalid
T23 //invalid but I want it to be valid
T //invalid
Why does this require the second character to be a letter? Why can't it be at least 2 characters where the first letter is followed by more letters and numbers can be at the end? 2 letters should pass and one letter and 1 number should pass.