I want a regular expression in java that must contain at least a alphabet and a number at any position. It is for the password that contain the digits as well as numbers.
This should work for:
“1a1b23nh” Accepted
“bc112w” Accepted
“abc” Not accepted
“123” Not accepted
Special characters are not allowed.
How about a simple content check? Check if there are number(s) and character(s)