I am trying to write a regular expression validator with not much luck. I want to enforce the following on a password:
At least 6 characters. At least 1 number. At Least 1 letter.
This is what I have which does not seem to be working:
^(?=.*[0-9]+.*)(?=.*[a-zA-Z]+.*)[0-9a-zA-Z]{6,}$
At least 6 characters. At least 1 number. At Least 1 letter.
This is what I have which does not seem to be working:
^(?=.*[0-9]+.*)(?=.*[a-zA-Z]+.*)[0-9a-zA-Z]{6,}$