复制代码代码如下:
publicstaticbool IsNumeric(string value)
{
return Regex.IsMatch(value, @"^[+-]?/d*[.]?/d*$");
}
publicstaticbool IsInt(string value)
{
return Regex.IsMatch(value, @"^[+-]?/d*$");
}
publicstaticbool IsUnsign(string value)
{
return Regex.IsMatch(value, @"^/d*[.]?/d*$");
}