正则验证整数或保留小数一位

var reg = new Regex(@"^\d*\.{0,1}\d{0,1}$");
            if (!reg.IsMatch(body.Quota.ToString())) {
}
相关文章
相关标签/搜索