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

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

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

原文地址:https://www.cnblogs.com/yuys/p/5231065.html