- UID
- 13311
- 帖子
- 28
- 精华
- 0
- 贡献
- 0
- 推广
- 0
- 有效BUG
- 0
- 注册时间
- 2006-6-9
|
本帖最后由 hess 于 2009-11-10 20:10 编辑
- <div id="news">
- <h3 id="news_title">香港中文大学研发出图片合成动画系统</h3>
- <p id="news_font"> </p>
- <p id="news_author"><span>ugmbbc发布于 2009-11-10 18:22:27|<script src="/counter.php?sid=97504"></script> 次阅读 字体:<a href="javascript:fontZoomB();">大</a> <a href="javascript:fontZoomA();">小</a> <a href="http://m.cnbeta.com/print.php?sid=97504" target=_blank>打印预览</a></span></p>
- <script type="text/javascript" language="javascript">var ReTitle = '回复:香港中文大学研发出图片合成动画系统';</script>
- <div id="news_content"><a href="/topics/260.htm" ><img src="http://img.cnbeta.com/topics/latest.gif" alt="cnBeta 最新消息" name="sign" align="right" id="sign" onload="fixPNG(this)"/></a>
- <div class="digbox">
- <div class="dig" id="dig97504">0</div>
- <div class="digaction" id="action97504"><a href="javascript:dig(97504);" style="color:white">顶一下</a></div>
- <div id="loading97504" class="digload"></div>
- <div id="reply97504"></div>
- </div>
- <script type="text/javascript"><!--
- google_ad_client = "pub-9066977823953139";
- google_alternate_color = "E5ECF4";
- google_ad_width = 234;
- google_ad_height = 60;
- google_ad_format = "234x60_as";
- google_ad_type = "text_image";
- //2007-08-31: 页内文末
- google_ad_channel = "0839583543";
- google_color_border = "E5ECF4";
- google_color_bg = "E5ECF4";
- google_color_link = "0000FF";
- google_color_text = "000000";
- google_color_url = "008000";
- //-->
- </script>
复制代码
我要过滤掉13-28行,怎么写规则,我写的规则把前面的<script>也包括进去了。
下面是我的规则
- <script[\w" \/]*?>(?:[\s\S]*?)google_(?:[\s\S]*?<\/script>)
复制代码 |
|