Isabella
---- I fell upon the thorn of life, I bleed.
  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*$");
 }
posted on 2007-02-05 16:48  李昀璟  阅读(1788)  评论(4)    收藏  举报