數字與字母的組合,且字母必須包含有大小寫
Regex reg = new Regex(@"^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,20}$");
bool vefiryIsMatch = reg.IsMatch(person_tax_password);
if (!vefiryIsMatch)
{
return Result.Fail<List<Info>>("密碼不滿足規則(8至20位,數字與字母的組合,且字母必須包含有大小寫),請檢查");
}