- UID
- 103025
- 帖子
- 30779
- 精华
- 0
- 贡献
- 9
- 推广
- 3
- 有效BUG
- 0
- 注册时间
- 2008-4-1
|
46#
发表于 2009-12-29 10:17
| 只看该作者
大E提到的变量我一直没弄明白,我看pop的过滤规则,找到了这一段,能给详细的分析一下吗?
另外[\s\S]和$pop$都是什么含义?
变量太难理解了- </pattern><pattern type="4">
- <targets>
- <param>
- <![CDATA[<div class="pop_1_right_1">]]>
- </param>
- <paramex>
- <![CDATA[</DIV></DIV></td>]]>
- </paramex>
- </targets>
- <pattern type="2">
- <targets>
- <param>
- <![CDATA[[\s\S]+]]>
- </param>
- <replacevar>
- <![CDATA[$pop$]]>
- </replacevar>
- <replace>
- <![CDATA[<!--test a---></td>]]>
- </replace>
- </targets>
- </pattern>
- </pattern><pattern type="5">
- <targets>
- <param>
- <![CDATA[<div\sclass="pop_1_right_1"\sstyle="margin-bottom:5px">[\s\S]+?<div\sclass="pop_5_1">]]>
- </param>
- <replace>
- <![CDATA[$pop$
- </div>
- </div>
- <div class="pop_5" style="margin-top:7px;"><div class="pop_5_1">
- ]]>
- </replace>
- </targets>
- </pattern><pattern type="5">
- <targets>
- <param>
- <![CDATA[<table\swidth="964"[\s\S]*?</table>]]>
- </param>
- <replace>
- <![CDATA[ ]]>
- </replace>
- </targets>
- </pattern><pattern type="4">
- <targets>
- <param>
- <![CDATA[<div class='pop' style='margin-top:5px;'>]]>
- </param>
- <paramex>
- <![CDATA[<div class='pop' style="background-color:#D7E9FF;margin-bottom:5px;margin-top:3px;">]]>
- </paramex>
- </targets>
- <pattern type="2">
- <targets>
- <param>
- <![CDATA[[\s\S]+]]>
- </param>
- <replace>
- <![CDATA[<!--test a---><div class='pop' style="background-color:#D7E9FF;margin-bottom:5px;margin-top:3px;">]]>
- </replace>
- </targets>
- </pattern>
- </pattern>
复制代码 |
|