<table width=100% border=0 cellpadding=0 cellspacing=0 onclick="alert(this.innerText)">
<tr> 
<td width=5% align=right valign=top class=css2> <b>1.</b>&nbsp;</td>
<td width=94% class=l15>
<font class=f14q>
<span class="css3"><a href="http://a.html" target=_blank> 您好</a></span><br>

<span class="css2"> &nbsp;&nbsp;&nbsp;&nbsp;您好您好您好您好您好您好</span> <br>

<font color="008000">http://1.html</font>- <font color="#666666">0000/00/00 00:00</font><br>
</table>

解决方案 »

  1.   

    不用正则取哦.
    这些都是<span></span>中的文本,去的时候只认这个.
      

  2.   

    <?php
    $s = '<table width=100% border=0 cellpadding=0 cellspacing=0>
    <tr> 
    <td width=5% align=right valign=top class=css2> <b>1.</b> </td>
    <td width=94% class=l15>
    <font class=f14q>
    <span class="css3"><a href="http://a.html" target=_blank> 您好</a></span><br>

    <span class="css2">     您好您好您好您好您好您好</span> <br>

    <font color="008000">http://1.html</font>- <font color="#666666">0000/00/00 00:00</font><br>
    </table>
    ';$s = strip_tags($s,"<a>");
    $tmp = split("[\r\n]+",$s);$ar = array();
    foreach($tmp as $v) {
      $ch = trim($v);
      if(! empty($ch))
        $ar[] = $ch;
    }
    print_r($ar);
    ?>