- UID
- 3105
- 帖子
- 91
- 精华
- 0
- 贡献
- 2
- 推广
- 0
- 有效BUG
- 0
- 注册时间
- 2005-9-28
|
4#
发表于 2008-7-18 01:03
| 只看该作者
感谢elkay大大的答复,还有两个问题需要请教:
1、问题一中,我用以下代码过滤后,下面的版页无法上移,有什么办法吗:
-
- #exd#*deviantart.com*#<div id="ad-blocking-makes-fella-sad"[^>]*?>[\s\S]*?Subscribe Now(?:[\s\S]*?<\/div>){4}###<!--Ad blocked by TheWorld2-->
复制代码
2、有一段广告想移除,代码如下:
-
- <div class="box">
- <div class="boxtop">
- <h2 class="c">deviantART Notice</h2>
- <a class="subbyCloseX"
- href="http://my.deviantart.com/services/?page=subscription&utm_source=RedX&utm_medium=Button&utm_campaign=Subscription_RedX"
- onmouseover="Subby.warning(this, 'Turn off', 'Ads')"
- onmouseout="Subby.out(this)"
- >[x]</a>
- </div>
- <div class="pp c">
- <iframe id="a7bc0ff3" name="a7bc0ff3" src="http://adcast.deviantart.com/delivery/afr.php?n=a7bc0ff3&zoneid=33" framespacing="0" frameborder="no" scrolling="no" width="300" height="250"><a href="http://adcast.deviantart.com/delivery/ck.php?n=a885e60f" target="_blank"><img src="http://adcast.deviantart.com/delivery/avw.php?zoneid=33&n=a885e60f" border="0" alt=""></a></iframe>
- <script type="text/javascript" src="http://adcast.deviantart.com/delivery/ag.php"></script>
- </div>
- </div>
复制代码
但网页代码中前面已有3处出现:
-
- <div class="box">
- <div class="boxtop">
- <h2 class="c">...
复制代码
在这种情况下如何使用正则表达式表示? |
|