1. password should have atleast one alphabet and atleast one digit.hope i am clear.
2.password should be atleast 6 characters and maximum of 8.
3. also password can allow specialcharacters 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.....