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

求正则表达式 提取table 里面的<td> <tr>的值
HTML code



<html>
<HEAD>
    
    <LINK href="../css/css.css" type=text/css rel=stylesheet>
    <LINK href="../css/font.css" type=text/css rel=stylesheet>
    <script language="JavaScript" src="../js/function.js"></script>
    <script language="JavaScript" src="../js/comm.js"></script>
    <script language="JavaScript" src="../js/calendar.js"></script>

    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="0">
</HEAD>

<BODY oncontextmenu="self.event.returnValue=false" onload="window.parent.fraToolbar.Restart();" onkeydown="shortcut();"> 
<table border='0' cellspacing='0' cellpadding='0' height="18" width=100% background=../image/bg.gif>
</table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr height="10">
        <td width="10"></td>
        <td></td>
        <td width="10"></td>
      </tr>
      <tr>
        <td width="10"></td>
        <td align="center" valign="top">

    <table width="98%" height="100%" style="" id="" border="0" cellspacing="0" cellpadding="0">
  <tr height="32"> 
    <td background="/JSSMS/image/tag8.gif" width="7"/>
    <td background="/JSSMS/image/tag8.gif" >
    <table border="0" cellspacing="0" cellpadding="0">
      <tr height="32">

          <td background="/JSSMS/image/tag1.gif" width="12"></td>
        <td background="/JSSMS/image/tag2.gif" align="center">交易查询</td>
        <td width="12" background="/JSSMS/image/tag3.gif"></td>

            <td background="/JSSMS/image/tag7.gif" width="12"></td>
        <td>请输入查询条件</td>
      </tr>
    </table>
    </td>
    <td background="/JSSMS/image/tag8.gif" width="3"></td>
    <td width="3"><img src="/JSSMS/image/tag9.gif" width="3" height="32"></td>
  </tr>
  <tr height="3"> 
    <td width="3" class="td1"></td>
    <td class="td1"></td>
    <td width="3" class="td1"></td>
    <td width="3" background="/JSSMS/image/tag11.gif"></td>
  </tr>
  <tr> 
    <td width="3" class="td1"></td>
    <td align="left" valign="top">


        
<TABLE cellSpacing="2" cellPadding=0 width="100%" align=center border=0">
<TBODY>
 <TR>
      <TD align="center">
          <DIV class="querybox">
          <form name="searchForm" action="../rechargeQueryDo.do" method="post">
          <input type="hidden" name="btnSave" id="btnSave" value="0" />
          <TABLE cellSpacing="0" cellPadding="0" width="95%">
             <TBODY>
                      <TR vAlign=middle> 
                      <TD width