c# 正则验证

1.验证百分数

bool tempBool = Regex.IsMatch(str, @"[1-9]{0,1}[0-9](\\.[0-9])?%");
原文地址:https://www.cnblogs.com/yxcn/p/10075435.html