2011年8月3日

正则表达式集锦

摘要: if (Regex.IsMatch(string input, string pattern)) stringphone=@"^(13[0-9]|15[0-9]|18[0|2|5|6|7|8|9])\d{8}$"; //手机号码 string email = @"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*";//E_mail stringcardID1s = @"^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$";//15位 阅读全文

posted @ 2011-08-03 14:41 缘来 阅读(152) 评论(0) 推荐(0)

导航