在C#.net中使用正则表达式检验输入是否为数字
private static bool IsRegEx(string regExValue, string itemValue) try
上面这个其实不对
if (!System.Text.RegularExpressions.Regex.IsMatch(temp, @"^[-]?/d+[.]?/d*$"))
这个也许差不多 |
private static bool IsRegEx(string regExValue, string itemValue) try
上面这个其实不对
if (!System.Text.RegularExpressions.Regex.IsMatch(temp, @"^[-]?/d+[.]?/d*$"))
这个也许差不多 |