元字符要如何写?
我尝试了下面的语法,发现都不行
Code: Select all
(^static)++.atm.youku.com
[(^static)]++.atm.youku.com
[^(static)]++.atm.youku.com
(*&(^static))++.atm.youku.com
Moderator: cre
Code: Select all
(^static)++.atm.youku.com
[(^static)]++.atm.youku.com
[^(static)]++.atm.youku.com
(*&(^static))++.atm.youku.com
Code: Select all
[^o]adfile/
/ad([a-z]&([^dmvo]))
://www.ad&(^(://www.ad(min|muncher|obe|d)))
Code: Select all
~$URL(*.ggpht.com)*.(jpg|gif|png)
Code: Select all
~*abc.def.aaa
*???.def.aaa
Code: Select all
*??.atm.youku.com
~*ic.atm.youku.com
是有这个问题,如果你给出的就是实际url,只要含有 ”static“匹配下来就会多一一个 “s”
比如 static.atm.youku.com ,static.static.atm.youku.com, static.dsfsd.atm.youku.com 等等
Code: Select all
(^static.)[^/]++.atm.youku.com
Code: Select all
# URL expression syntax:
# Exactly one page: www.mysite.com/mydir/mypage.html
# One hostname: www.mysite.com/
# The whole domain: ([^/]++.|)mysite.com/
# All subdomains: [^/]++.mysite.com/
# All primary subdomains: [^.]+.mysite.com/
# All primary subdomains except "www": [^.]+.mysite.com/&(^www.)