can anyone give me a regex to validate the password with following conditions
hope i am clear.
i tried with ctype_alnum() function in php but it is accepting if all characters or either alphabet or digit. but i want to enforce atleast one alphabet and one digit should be in password
can any one give me a regex for this pls.....
1. password should have atleast one alphabet and atleast one digit.
2.password should be atleast 6 characters and maximum of 8.
3. also password can allow specialcharacte rs but it is not mandatory.
without spl.characters also password is valid but it should have atleast one alphabet and minimum 1 digit.
2.password should be atleast 6 characters and maximum of 8.
3. also password can allow specialcharacte rs but it is not mandatory.
without spl.characters also password is valid but it should have atleast one alphabet and minimum 1 digit.
i tried with ctype_alnum() function in php but it is accepting if all characters or either alphabet or digit. but i want to enforce atleast one alphabet and one digit should be in password
can any one give me a regex for this pls.....
Comment