public static bool IsNumAndEnCh(string input)
{
// string pattern = @"^[A-Za-z0-9]+$";
string pattern = @"^([0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}|[1-9]\d{14})$";
Regex regex = new Regex(pattern);
return regex.IsMatch(input);
}
统一社会信用代码校验c#
最新推荐文章于 2023-05-12 14:27:16 发布