System.Text.RegularExpressions.Regex.IsMatch("11", "^[0-9]") 结果 true
System.Text.RegularExpressions.Regex.IsMatch("aa", "^[0-9]") 结果 false
System.Text.RegularExpressions.Regex.IsMatch("1a", "^[0-9]") 结果 true 这里就错了
怎么验证必须是整型字符,不能包含字母,高手帮忙!!
摆脱了!!!
System.Text.RegularExpressions.Regex.IsMatch("aa", "^[0-9]") 结果 false
System.Text.RegularExpressions.Regex.IsMatch("1a", "^[0-9]") 结果 true 这里就错了
怎么验证必须是整型字符,不能包含字母,高手帮忙!!
摆脱了!!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货