来源:www.cncfan.com | 2006-10-30 | (有5985人读过)
<td class=cate width="45%" style="word-break:break-all"> <a class=M target="_blank" href="http://www.cncfan.com/outurl.asp?url=http://jmfengcai.cn.alibaba.com/athena/companydetail/jmfengcai.html" onMouseDown="return aliclick(this,'?alishop=companylistcompanyname');" target="_blank" class=M>江门市蓬江区凤彩工艺厂</a> <br> 代码如上.我请问如何用正则表达式,把"http://jmfengcai.cn.alibaba.com/athena/companydetail/jmfengcai.html"提取出来?
CODE代码:
/(http:\/\/\[^" ']+)/gm /href *= *['"]*(\S+)["']* */gm 根据不同需要选择。
|