日期:2014-05-17  浏览次数:21091 次

正则表达式匹配标签(C#)
我要在这个http://ent.qq.com/a/20130709/000015.htm网站上面只筛选到这一段HTML源码<div id="Cnt-Main-Article-QQ" bosszone="content" style="position: relative;">
<p class="titdd-Article">[<strong>导读</strong>]日,现年62岁的香港武侠片御用导演徐克与比他小33岁的新欢一同现身上海机场。当天徐克一

身黑衣“侠气”十足,走在身后的女友则是一身潮范装扮。</p><p align="center"><div class="mbArticleSharePic        " r="1" 

style="width: 400px;"><div class="mbArticleShareBtn"><span>转播到腾讯微博</span></div><img alt="徐克与29岁新欢现身机场 女方一身潮

范装扮(图)" src="http://img1.gtimg.com/ent/pics/hv1/93/25/1367/88895643.jpg"></div></p><p style="FONT-FAMILY: 宋体; FONT-SIZE: 

10.5pt" align="center"><a class="a-tips-Article-QQ" href="http://datalib.ent.qq.com/star/1149/index.shtml" target="_blank">徐克

</a>与29岁新欢现身机场</p><p style="TEXT-INDENT: 2em">近日,现年62岁的香港武侠片御用导演徐克与比他小33岁的新欢一同现身上海机场。当

天徐克一身黑衣“侠气”十足,走在身后的女友则是一身潮范装扮,看上去与徐克完全不是一个时代的人。<a href="http://www.qq.com/?

pref=article" target="_blank" title="点击进入腾讯首页" id="backqqcom"><img src="http://www.qq.com/favicon.ico" width="16" 

height="16"></a></p><div id="tipsWBzf" style="width: 59px; height: 22px; position: absolute; visibility: hidden; text-decoration: 

none; z-index: 899; cursor: pointer; left: 43px; top: 267px;"><span style="position:relative;"><a href="javascript:void(0)" 

style="position:absolute;left:0;top:0;z-index:900;display:block;width:59px;height:22px;background:url

(http://mat1.gtimg.com/news/2011/logo.png) no-repeat;" title="转播至微博"></a></span></div></div>
请问正则表达式怎么写呀???
正则表达式 C# 标签

------解决方案--------------------
string result = Regex.Match(yourHtml,@"(?s)<div id=""Cnt-Main-Article-QQ"" bossZone=""content"">.+?</div>").Value

------解决方案--------------------
string result = Regex.Match(yourHtml,@"(?s)<div id=""Cnt-Main-Article-QQ"" bossZone=""content"">.+?</div>").Value