public static bool IsNumeric(string value)
 
{
  
return Regex.IsMatch(value, @"^[+-]?\d*[.]?\d*$");
 }

 
public static bool IsInt(string value)
 
{
  
return Regex.IsMatch(value, @"^[+-]?\d*$");
 }

 
public static bool IsUnsign(string value)
 
{
  
return Regex.IsMatch(value, @"^\d*[.]?\d*$");
 }

相关文章: