|
@@ -1289,7 +1289,7 @@ namespace OTSMeasureApp
|
|
|
string pat = @"^-?[0-9]\d*$";//只能限定正负整数,包含0
|
|
|
string scope = @"^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])$";
|
|
|
string PositiveDecimals = @"^(([1-9]\d*)(\.\d+)?)$|^0\.\d*[1-9]$"; //正浮点数
|
|
|
- string positiveInteger = @"^?[0-9]\d*$";//只能限定正负整数,包含0
|
|
|
+ string positiveInteger = @"^?[0-9]\d*$";//只能限定正整数,包含0
|
|
|
Regex rg = new Regex(pat);
|
|
|
Regex rgScope = new Regex(scope);
|
|
|
Regex rgPositiveDecimals = new Regex(PositiveDecimals);
|