判断一个字符串是否是数字

        public bool IsNum(string Str)
        {
           
            string Rx = @"^[1-9]d*$";
            if (Regex.IsMatch(Str, Rx))
            {
                return true;
            }
            else
            {
                return false;
            }
            
        }
原文地址:https://www.cnblogs.com/wenjieyatou/p/5469959.html