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

请教一个简单的正则
<tr   class= "Odd ">
                    <td   class= "Name "> <a   href= "123.html "   target= "_blank "> aaaaa </a>   </td>
                        <td   class= "cc3 "> 1 </td>
                    <td   class= "cc3 "> 1 </td>
   
   

                    <td   class= "none "> - </td>
                    <td> <a   href= "234.html "   target= "_blank "> ccc </a> </td>
                    <td> ssss </td>
                </tr>

<tr   class= "new ">
                    <td   class= "Name "> <a   href= "123.html "   target= "_blank "> aaaaa </a>   </td>
                        <td   class= "cc3 "> 1 </td>
                    <td   class= "cc3 "> 1 </td>
   
   

                    <td   class= "none "> - </td>
                    <td> <a   href= "234.html "   target= "_blank "> ccc </a> </td>
                    <td> ssss </td>
                </tr>

取出每个td里面的内容的正则如何写呢?

------解决方案--------------------
innerText
------解决方案--------------------
<textarea id=textarea1>
<tr class= "Odd ">
<td class= "Name "> <a href= "123.html " target= "_blank "> aaaaa </a> </td>
<td class= "cc3 "> 1 </td>
<td class= "cc3 "> 1 </td>



<td class= "none "> - </td>
<td> <a href= "234.html " target= "_blank "> ccc </a> </td>
<td> ssss </td>
</tr>

<tr class= "new ">
<td class= "Name "> <a href= "123.html " target= "_blank "> aaaaa </a> </td>
<td class= "cc3 "> 1 </td>
<td class= "cc3 "> 1 </td>



<td class= "none "> - </td>
<td> <a href= "234.html " target= "_blank "> ccc </a> </td>
<td> ssss </td>
</tr>

</textarea&