求牛人写一个正则表达式。。

更多公告
    <div style="width:100px; float:right; text-align:right; line-height:30px"></div>
  </div>
  <div class="box2" style="height:650px;">


           <div style=" width:720px; height:25px; float:left; padding-top:5px; border-bottom:#CCCCCC 1px dashed">
          <div style="width:550px;float:left">&nbsp;&nbsp;·&nbsp;<a href="newsShow.aspx?ID=4207" target="_blank"><font color=''>12月1日1-2节旷课名单</font></a>
            <img src="images/new.jpg" width="28" height="11" /> </div>
       <div style="width:100px;float:right; text-align:right">2014-12-01&nbsp;&nbsp;&nbsp;&nbsp;</div>
        </div>
                    。
                    。
                    。
                    。
                    。
*****

从这个字符串

开始,到这个字符串
结束。截取里面的href和title。例如获得(newsShow.aspx?ID=4207 和 12月1日1-2节旷课名单)

没特别明白楼主的意思。

原来显示不出来,我在这里再写下,对不起各位...
从这个字符串

开始,到这个字符串“
”结束。截取“”里面的href和文本。例如获得(newsShow.aspx?ID=4207 和 12月1日1-2节旷课名单)

取分组1和分组2的值就是你要的:href和title。获得(newsShow.aspx?ID=4207 和 12月1日1-2节旷课名单)

 (?is)<div class="left" style="padding-left:10px;">.*?<a.*?href="(.*?)".*?>(.*?)</a>.*?<div id="_ctl0_ContentPlaceHolder1_pagNum">