密码验证规则-正则表达式

string pattern = @"^(?=.*[0-9])(?=.*[!@#$%^&*])[0-9a-zA-Z!@#$%^&*0-9]{10,}$";

 

string msg = "Password should have one numeral and one special character""

posted @ 2016-03-01 15:01  奔跑的Code  阅读(3043)  评论(0编辑  收藏  举报