string pattern = @"^(?=.*[0-9])(?=.*[!@#$%^&*])[0-9a-zA-Z!@#$%^&*0-9]{10,}$";
string msg = "Password should have one numeral and one special character""
本文共 200 字,大约阅读时间需要 1 分钟。
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