随笔分类 -  正则

摘要:#region 验证手机号码 /// /// 验证手机号码 /// /// 手机号码 /// public static bool IsTelephone(string strTelephone) { return Regex.IsMatch(strTe... 阅读全文
posted @ 2016-08-06 12:44 落叶的瞬间; 阅读(300) 评论(0) 推荐(0)
摘要:1 public static bool IsTelephone(string strTelephone) 2 { 3 return Regex.IsMatch(strTelephone, "^1\\d{10}$"); 4 } 一、正则表达式(regular expression简称res) 1、定 阅读全文
posted @ 2016-03-30 10:45 落叶的瞬间; 阅读(276) 评论(0) 推荐(0)