Monday, March 8, 2010

Regular Expression for validating Password

^(?=.*\d)(?=.*[~!@#$%^*?=])(?=.*[a-z])(?=.*[A-Z]).{8,10}$
Description:
1, words length:8~10;
2, at least 1 digital;
3, at least 1 special character([~!@#$%^*?=]);
4, at least 1 low case letter;
5, at least 1 upper case letter;