public static bool IsNumeric(string value)
{
try
{
return Regex.IsMatch(value, "^(-?\\d+)(\\.\\d+)?$");
}
catch (Exception ex)
{
return false;
}
}