正则表达式解析Html网页中一部分的源代码

w王鹏p 发布于 2012/07/19 17:12
阅读 720
收藏 0

<tr class="element has-image">
<td class="rank">1</td>
<td class="rankpast">-</td>
<td class="movie-image">
<a href="/movie/ice-age-continental-drift-2012/;_ylt=AsEDH5CFdS83HMcQh0NiD8EdfjoC;_ylu=X3oDMTFoNnQwMjV0BG1pdANPcGVuaW5nIFRoaXMgV2Vla2VuZARwb3MDMQRzZWMDTWVkaWFCb3hPZmZpY2U-;_ylg=X3oDMTFuanJjOW91BGludGwDdXMEbGFuZwNlbi11cwRwc3RhaWQDBHBzdGNhdANib3hvZmZpY2UEcHQDc2VjdGlvbnM-;_ylv=3" >

<img src="http://l.yimg.com/os/mit/media/m/base/images/transparent-95031.png" style="background-image:url('http://l.yimg.com/bt/api/res/1.2/lcNufhwLLHJ2xbK1NHe0rA--/YXBwaWQ9eW5ld3M7Zmk9ZmlsbDtoPTc0O3B4b2ZmPTUwO3B5b2ZmPTA7cT04NTt3PTUw/http://l.yimg.com/os/251/2012/06/26/IceAge4-VerB-RatedPoster-rgb-jpg_165841.jpg');" width="50px" height="74px" alt="" title="" class="lzbg">
</a>
</td>


<td class="title">
<div><a href="/movie/ice-age-continental-drift-2012/;_ylt=Atfd3I9nPrEKAiu2JUAZQhsdfjoC;_ylu=X3oDMTFoOTNjcDYzBG1pdANPcGVuaW5nIFRoaXMgV2Vla2VuZARwb3MDMgRzZWMDTWVkaWFCb3hPZmZpY2U-;_ylg=X3oDMTFuanJjOW91BGludGwDdXMEbGFuZwNlbi11cwRwc3RhaWQDBHBzdGNhdANib3hvZmZpY2UEcHQDc2VjdGlvbnM-;_ylv=3" >Ice Age: Continental Drift
</a></div>
<div class="distributor">20th Century Fox Distribution</div>

<div class="period-value">$46,629,260</div>
</td>
<td class="stats">$46.6M</td>
<td class="stats">1</td>
<td class="stats">3881
</td>
</tr>

加载中
返回顶部
顶部