This function returns true if the all the characters in a string are numeric.
using System.Text.RegularExpressions;
static bool AllNumeric(string inputString)
{
return Regex.IsMatch(inputString, @"^\d+$");
}
blog comments powered by Disqus