////1.正则表达式 ////标题 //var titleMc = Regex.Match(result, "c_333 f20">(.*?)<"); //if (titleMc.Success) //{ // //titleMc.Value.Replace("", ""); // textBox2.Text += titleMc.Groups[1].Value; //} ////价格 //var priceMc = Regex.Match(result, ""price">(.*<b>万</b>)"); //if (priceMc.Success) //{ // var price = priceMc.Groups[1].Value.Replace("230<b>万</b>", "230万"); //} ////多少价格一平 //var pingfangMc = Regex.Match(result, ""unit">(.*?)</span>"); //if (pingfangMc.Success) //{ // var pingfang = pingfangMc.Groups[1].Value; // var pingfangresult = Regex.Replace(pingfang, "\s.*", ""); //} ////小区 //var xiaoquMc = Regex.Match(result.Replace(" ", ""), "小区:.*?</a>"); //if (xiaoquMc.Success) //{ // var xiaoqu = xiaoquMc.Value; // var xiaoQuInfo = Regex.Replace(xiaoqu, "小区:.*?">", ""); // var xiaoQuResult = Regex.Replace(xiaoQuInfo, "\s.*", ""); //} ////朝向 //var chaoxiangMc = Regex.Match(result, ""main">(.北?)<"); //if (chaoxiangMc.Success) //{ // var chaoxiangresult = chaoxiangMc.Groups[1].Value; //} //年限 //var huXingMatch = Regex.Match(result, ""main">(.*?)<"); //if (huXingMatch.Success) //{ // var huXing = huXingMatch.Groups[1].Value; // var ting = Regex.Match(huXing, "\d厅"); //} ////价格 面积 楼层(总:1层,所在:2层) 小区 ////价格 //var priceMc = Regex.Match(result, ""price">(\d*<b>万</b>)"); //if (priceMc.Success) //{ // var price = priceMc.Groups[1].Value.Replace("122<b>万</b>", "122万"); //} ////面积 //var mianjiMc = Regex.Match(result, ""main">(\d*?平)<"); //if (mianjiMc.Success) //{ // var mianji = mianjiMc.Groups[1].Value; //} ////11楼层 //var flootMc = Regex.Match(result, ""sub">中层/共(\d*?层)<"); //if (flootMc.Success) //{ // var floot = flootMc.Groups[1].Value; //} ////所在中层 //var loucengMc = Regex.Match(result, ""sub">(.层)/共11层<"); //if (loucengMc.Success) //{ // var louceng = loucengMc.Groups[1].Value; //} ////小区 //var xiaoquMc = Regex.Match(result.Replace(" ", ""), "小区:.*?</a>"); //if (xiaoquMc.Success) //{ // //小区:</span> <span class='c_000 mr_10'> <a href='/xiaoqu/yinjiguojiluyoudujiaqu' target='_blank' class='c_000' onclick="clickLog('from=fcpc_detail_esf_zz_xiaoqu')">银基国际旅游度假区 </a> // var xiaoqu = xiaoquMc.Value; // var xiaoQuInfo = Regex.Replace(xiaoqu, "小区:.*?">", ""); // //银基国际旅游度假区 </a> // var xiaoQuResult = Regex.Replace(xiaoQuInfo, "\s.*", ""); //} ////朝向 //var chaoxiangMc = Regex.Match(result, ""main">(.)<"); //if (chaoxiangMc.Success) //{ // var chaoxiang = chaoxiangMc.Groups[1].Value; //} ////房屋总价 //var fangWuPriceMc = Regex.Match(result, ""c_000">(.*?</span>"); //if (fangWuPriceMc.Success) //{ // var fangWuPrice = fangWuPriceMc.Groups[1].Value; //}