可是这句有点看不明白 改都不知道怎么改..........
原文是在Google Search: Add Date Range Box 7.10.22 [sd] (d.s)里的
Code: Select all
[Patterns]
Name = "Google Search: Add Date Range Box 7.10.22 [sd] (d.s)"
Active = FALSE
URL = "$TYPE(htm)www.google.[^:/]+/(intl/[^/]+/(^?)|search\?(^q\=cache:)|webhp|ig(\?|(^?))|(^?))"
Limit = 256
Match = "<input[^>]++name=$AV(q)$STOP()"
"[^>]+> ("
"<font size=$AV(-1)[^>]+> (^(\ )+<select)"
"|(^(^(<br /+> )+<input[^>]++name=$AV(btnG)))"
")"
"&&$SET(1=$TST(uFile=ig) style="margin-bottom:5px;")\0"
Replace = "\0 <select name="as_qdr"\1>\n"
"<option value="" selected>anytime</option>\n"
"<option value="d">past 24 hours</option>\n"
"<option value="w">past week</option>\n"
"<option value="m">past month</option>\n"
"<option value="m2">past 2 months</option>\n"
"<option value="m3">past 3 months</option>\n"
"<option value="m6">past 6 months</option>\n"
"<option value="y">past year</option>\n"
"</select> "
举个例子.......这一段现在能匹配
Code: Select all
<input type=text name=q size=41 maxlength=2048 value="aaaaa" title="検索"> <input type=submit name="btnG" value="検索">
Code: Select all
<input maxlength=2048 name=q size=55 style="border:solid 1px #7f9db9" title="Google 検索" value=""><input name=btnG type=submit value="Google 検索" style=height:1.8em>
其实主要就是里面的 $AV(q)$STOP() 看不太懂...........
还有最后的 &&$SET(1=$TST(uFile=ig) style="margin-bottom:5px;")\0 这句