判断是否英文字母或数字的C#正则表达式
时间:2017-07-04 19:46:29
收藏:0
阅读:360
private int IsDigitOrNumber(string str) { if(System.Text.RegularExpressions.Regex.IsMatch(str,@"(?i)^[0-9a-z]+$")) return 1; else return 0; }
原文:http://www.cnblogs.com/qinweizhi/p/7117717.html
评论(0)