摘要: public static int GetAgeByIdCard(string idCard) { int age = -1; if (!string.IsNullOrWhiteSpace(idCard)) { var subStr = string.Empty; if (idCard.Length 阅读全文
posted @ 2020-08-17 15:53 低调码农哥! 阅读(272) 评论(0) 推荐(0) 编辑
摘要: //输入只能为数字、字母、汉字 Regex reg = new Regex("^[a-zA-Z0-9-\u2E80-\u9FFF]+$"); if (request.user_name.Length > 30 || !reg.IsMatch(request.user_name)) { return 阅读全文
posted @ 2020-08-17 10:28 低调码农哥! 阅读(1388) 评论(0) 推荐(0) 编辑