asp.net正则问题
小弟对正则不是很了解,只想匹配网页里某个部位里的所有信息,写了这么一段,但是都没达到效果,请各位大哥大姐帮忙
string str = Regex.Match(htm, "[<div id=\"content\">]+(.*)[<div id=\"page\">]+").Value
这个正则好像没效果,什么都不匹配如:
HTML其它内容
<div id="content">
HTML有用内容(这里面有N个DIV)
</div>
<div id="page"></div>
HTML其它内容