第三条匹配不知道怎么匹配了……重复测试N遍,页面卡死N次……正则新手伤不起
正则
^http(s)?://([^\.\/]+\.)*(google\.com|gstatic\.com)\/.*
http://tool.chinaz.com/regex/ 在这里测的

正则
^http(s)?://([^\.\/]+\.)*(google\.com|gstatic\.com)\/.*
http://tool.chinaz.com/regex/ 在这里测的


1
Garwih Aug 26, 2014 同新手。
^http(s)?\://([^\.\/]+\.)*(google|gstatic)\.com(\.hk)?/.* |
3
whywhywhy OP @Garwih 得 还是用以前的 www.google*搞一个规则*.google.com搞一个规则
|
5
jiyee Aug 26, 2014
([^\.\/]+\.)* 导致重复测试引起的。
|
6
hicdn Aug 26, 2014
^http(s)?://[\w.-]+(google|gstatic)\.com\/
|
7
hicdn Aug 26, 2014
^https?://[\w.-]+(?:google|gstatic)\.com\/
|
8
hicdn Aug 26, 2014
^https?://[\w.-]+(?:google|gstatic)\.com(?:\.hk)?\/
|