我要获取下面 http://price.360buy.com/P5457741791AD44FAF0267CACFA304713,3.png"
请大家帮下忙了,最好不要用捕获组。。<div id="Product_Intro_Right"><ul class="Pro_baseinfo"><li>市 场 价:<em class="m_line">¥218.00</em> <em class="grey">商品编号:100111</em></li><li>京 东 价:<img onerror = "this.src='http://www.360buy.com/images/no2.gif'" src ="http://price.360buy.com/P5457741791AD44FAF0267CACFA304713,3.png"/><span>降价通知</span>
请大家帮下忙了,最好不要用捕获组。。<div id="Product_Intro_Right"><ul class="Pro_baseinfo"><li>市 场 价:<em class="m_line">¥218.00</em> <em class="grey">商品编号:100111</em></li><li>京 东 价:<img onerror = "this.src='http://www.360buy.com/images/no2.gif'" src ="http://price.360buy.com/P5457741791AD44FAF0267CACFA304713,3.png"/><span>降价通知</span>
foreach (Match m in matchs) {
Response.Write(m.Groups[ "src "].Value);
}
http://price.360buy.com/P5457741791AD44FAF0267CACFA304713,3.png最好不要用捕获组,最好用普通的那种
MatchCollection mc = reg.Matches(yourStr);
foreach (Match m in mc)
{
richTextBox2.Text += m.Groups["src"].Value + "\n";
}