using System.Text.RegularExpressions; public class APIs { public static bool IsUInt(string str) { Regex myReg = new Regex(@"\d+$"); return myReg.IsMatch(str); } }