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

求正则高手如何取网页中的指定内容
如下的文件,只是举例,里面的url和非html元素可能会变
<table class="info-table">
                <tbody>
                    <tr>
                    <td class="name">发行银行</td>
                    <td class="value"><a href="http://bank.eastmoney.com/Bank3080136.html">招商银行</a></td>
                    <td class="name">币种</td>
                    <td class="value">人民币</td>
                    </tr>
                    <tr>
                    <td class="name">产品类型</td>
                    <td class="value">人民币理财</td>
                    <td class="name">委托管理期</td>
                    <td class="value wtglq" style="height:45px;">53日</td>
                    </tr>
                    <tr>
                    <td class="name">预期最高年化收益</td>
                    <td class="value">6.00%</td>
                    <td class="name">是否保本</td>
                    <td class="value">非保本</td>
                    </tr>
                    <tr>
                    <td class="name">收益类型</td>
                    <td class="value">收益浮动</td>
                    <td class="name">投资金额</td>
                    <td class="value">50