Possible Duplicate:
Password validation regex
I need to do the password validation in javascript with the below policies. Will you please let me know the regular expression for this? I'm quite new to regular expressions.
- Password should be 8 to 18 character long, and Password should meet at least 3 of the following conditions:
- Password should have at least one lower case character(a-z)
- Password should have at least one upper case character(a-z)
- Password should have at least one numeric value(0-9)
- Password should have a special character (i.e. @ . - _ # $ %)
Please help me out with this. I'm not able to determine how to provide a condition to meet this requirement.