#region 验证密码格式 public static bool ValidatePwd(string pwd) { return System.Text.RegularExpressions.Regex.IsMatch(pwd, "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W_]+$)(?![a-z0-9]+$)(?![a-z\W_]+$)(?![0-9\W_]+$)[a-zA-Z0-9\W_]{8,}$"); } #endregion
#region 验证密码格式 public static bool ValidatePwd(string pwd) { return System.Text.RegularExpressions.Regex.IsMatch(pwd, "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W_]+$)(?![a-z0-9]+$)(?![a-z\W_]+$)(?![0-9\W_]+$)[a-zA-Z0-9\W_]{8,}$"); } #endregion