111,129
社区成员
发帖
与我相关
我的任务
分享
string html = Encoding.GetEncoding("GBK").GetString(new System.Net.WebClient().DownloadData("http://www.100to.com/item.htm?id=2532774801"));
string result = System.Text.RegularExpressions.Regex.Match(html, @"(?<=<strong id=""J_StrPrice"">)\d+(\.\d+)?").Value;
string result = Regex.Match(yourHtml,@"(?<=<strong id=""J_StrPrice"">)\d+(\.\d+)?").Value;