几个C#常用正则表达式的总结 \\d{1,2})/(?\\d{1,2})/(?} //验证是否为电话号码 public static bool IsValidTel(string strIn) { return Regex.IsMatch(strIn,@"(\d+-)? ASP编程 2016-10-11 22:39:58
正则表达式(转) ))$ 匹配负浮点数 代码 ^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*)))$ 匹配浮点数 代码 ^(-?\S*)?>(.*? cshanzhizi 2013-01-21 15:52:56