摘要: bool bl = System.Text.RegularExpressions.Regex.IsMatch(name, @"[\u4e00-\u9fa5]+$"); if (!bl) { ("姓名只能为汉字"); } private static bool IsNumeric(string str) //接收一个string类型的参数,保存到str里 { if... 阅读全文
posted @ 2012-11-20 10:12 90后1场梦 阅读(346) 评论(0) 推荐(0) 编辑