string 原字符串=@"2&unifiedPost=7.00&unifiedExpress=7.00&unifiedEms=39.00' >";
string 正则表达式=@"&unifiedExpress=(?<qqqq>[+\-]?\d+(\.\d+)?)&";
Match m = Regex.Match(原字符串, 正则表达式);
return m.Groups[1].Value;
返回的是:.00 Match b = new Regex(正则表达式).Match(原字符串);
return b.Groups[组别名].Value;
返回的是:7.00这是怎么回事呢
string 正则表达式=@"&unifiedExpress=(?<qqqq>[+\-]?\d+(\.\d+)?)&";
Match m = Regex.Match(原字符串, 正则表达式);
return m.Groups[1].Value;
返回的是:.00 Match b = new Regex(正则表达式).Match(原字符串);
return b.Groups[组别名].Value;
返回的是:7.00这是怎么回事呢
而 b.Groups[组别名].Value 取的是 (?<qqqq>[+\-]?\d+(\.\d+)?)的值
怎么可能一样??