在路上

 找回密码
 立即注册
在路上 站点首页 学习 查看内容

url正则匹配

2016-7-29 15:47| 发布者: zhangjf| 查看: 659| 评论: 0

摘要: (ftp|http|https)://(w+:{0,1}w*@)?(S+)(:+)?(/|/())?((ftp|http|https)://)?(w+:{0,1}w*@)?(S+)(:+)?(/|/())?((((f|ht)tps?:)?//)?(+(:+)?@)?((({1,255}|xn--+)\.)+(xn--+|{2,6}|\d{1,3})|localhost|(%{2})+|+)(:{1 ...
<无详细内容>
  1. (ftp|http|https)://(w+:{0,1}w*@)?(S+)(:[0-9]+)?(/|/([w#!:.?+=&%@!-/]))?
  2. ((ftp|http|https)://)?(w+:{0,1}w*@)?(S+)(:[0-9]+)?(/|/([w#!:.?+=&%@!-/]))?
  3. ((((f|ht)tps?:)?//)?([a-zA-Z0-9!#$%&'*+-/=?^_`{|}~]+(:[^ @:]+)?@)?((([a-zA-Z0-9\-]{1,255}|xn--
  4. [a-zA-Z0-9\-]+)\.)+(xn--[a-zA-Z0-9\-]+|[a-zA-Z]{2,6}|\d{1,3})|localhost|(%[0-9a-fA-F]{2})+|[0-9]+)
  5. (:[0-9]{1,5})?([/\?][^ \s/]*)*)
复制代码

最新评论

小黑屋|在路上 ( 蜀ICP备15035742号-1 

;

GMT+8, 2025-7-1 13:38

Copyright 2015-2025 djqfx

返回顶部