源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

正则表达式,提取网页中的链接地址

  • 时间:2021-01-30 07:27 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:正则表达式,提取网页中的链接地址
<td class=cate width="45%" style="word-break:break-all">       <a class=M href="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"提取出来?
[u]复制代码[/u] 代码如下:
/(http:\/\/\[^" ']+)/gm /href *= *['"]*(\S+)["']* */gm 根据不同需要选择。 
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部