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

源码网商城

最新版网址替换正则表达式

  • 时间:2021-07-16 13:29 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:最新版网址替换正则表达式
[b]最新网址正则表达式 [/b]
[url=http://)?(\w+\.)(\w+\.)(\w+)(/\w+)*/?(.html)?|http://\w+\.\w+/\w]http://)?(\w+\.)(\w+\.)(\w+)(/\w+)*/?(.html)?|http://\w+\.\w+/\w[/url]+|[《》【】()()★※@~#]|\s{2,}
第一部分替换正常的网址,第二部分替换微博的网址,第三部分替换常用的符号,第四部分把2个以上的空格替换为空 [b]示例文本 [/b]
[url=http://www.google.com/(http://bit.ly/ZNdRfn]http://www.google.com/(http://bit.ly/ZNdRfn[/url]) [url=http://www.baidu.com/aa/bb]www.baidu.com/aa/bb[/url] [url=http://www.baidu.com/aa/bb/cc/]www.baidu.com/aa/bb/cc/[/url] [url=http://www.baidu.com/boy/s3s.htmlhttp://www.google.com/3dSd.html]www.baidu.com/boy/s3s.htmlhttp://www.google.com/3dSd.html[/url]
看了示例,你就明了!
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部