Is integer by regular expression
using System.Text.RegularExpressions; namespace Common.Core { public class Validator { public static bool IsInt(string strInt) { return new Regex(@"^(0|[1-9]\d*)$").IsMatch(strInt); //??? } } }