using System.Text.RegularExpressions;
string pattern = @"找到约 (?<number>.*)(?= 条结果)";
Match match = Regex.Match(str, pattern);
string value = match.ToString().Substring(4).Replace(",", "");
Console.WriteLine(value);
using System.Text.RegularExpressions;
string pattern = @"找到约 (?<number>.*)(?= 条结果)";
Match match = Regex.Match(str, pattern);
string value = match.ToString().Substring(4).Replace(",", "");
Console.WriteLine(value);
转载于:https://www.cnblogs.com/whlhaikuotiankong/archive/2012/03/13/2392801.html