例如:
<link rel="stylesheet" href="/images/style.css" />
<SCRIPT language=JavaScript type=text/JavaScript>
//改变图片大小
function resizepic(thispic)

if(thispic.width>400) thispic.width=400; 
}
//无级缩放图片大小
function bbimg(o)
{
  var zoom=parseInt(o.style.zoom, 10)||100;
  zoom+=event.wheelDelta/12;
  if (zoom>0) o.style.zoom=zoom+'%';
  return false;
}
</SCRIPT><script  type="text/javascript">
我想要匹配  <link rel="stylesheet"  到  o.style.zoom=zoom+'%'; 之间 包括这连个字符串的正则!大家帮我写下!

解决方案 »

  1.   

    举个例子!<html xml:lang="zh-CN" lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>欢迎访问[源码论坛科汛网站管理系统(CMS)-开源交流社区]</title>
    <meta name="keywords" content="ASP源码论坛,科汛网站管理系统,Kesion CMS V5.0,科汛开源社区" />
    <!--科汛CMS网站管理系统 Kesion CMS 5.5 V6开源社区-->
    <meta name="MSSmartTagsPreventParsing" content="TRUE" />
    <meta http-equiv="MSThemeCompatible" content="Yes" />
    <link rel="SHORTCUT ICON" href="favicon.ico" />
    <link rel="stylesheet" type="text/css" id="css" href="skins/default.css" />
    <link id="css" href="skins/dv_wnd.css" type="text/css" rel="stylesheet">
    <script language="javascript" src="inc/dv_wnd.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript"  src="inc/main82.js"></script><link title="源码论坛科汛网站管理系统(CMS)-开源交流社区-频道列表" type="application/rss+xml" rel="alternate" href="rssfeed.asp" /><link title="源码论坛科汛网站管理系统(CMS)-开源交流社区-最新20篇论坛主题" type="application/rss+xml" rel="alternate" href="rssfeed.asp?rssid=4" />
    </head>
    <body>
    我想用 UltraEdit   批量查找这两段字符串之间的段落(包括头尾的两个字符串)一定要在UltraEdit 上能用的才行  
      

  2.   

    (?<=\<link rel=\"stylesheet\").*(?=o\.style\.zoom=zoom\+'%';)
      

  3.   

    (?<=\<link rel=\"stylesheet\")(.*\n)*.*(?=o\.style\.zoom=zoom\+'%';)
      

  4.   

    刚才错误了,是不包含头尾的
    这个包含
    \<link rel=\"stylesheet\"(.*\n)*.*o\.style\.zoom=zoom\+'%';
      

  5.   

    又出现了一个很奇怪的问题!听我详细描述:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>在word里如何移动插入图片-软件使用-IT 吧</title>
    <meta name="keywords" content="如何,移动,插入,图片 />
    <meta http-equiv=Content-Type content="text/html; charset=gb2312">
    <link rel="stylesheet" href="/images/style.css" />
    <SCRIPT language=JavaScript type=text/JavaScript>
    //改变图片大小
    function resizepic(thispic)

    if(thispic.width>400) thispic.width=400; 
    }
    //无级缩放图片大小
    function bbimg(o)
    {
      var zoom=parseInt(o.style.zoom, 10)||100;
      zoom+=event.wheelDelta/12;
      if (zoom>0) o.style.zoom=zoom+'%';
      return false;
    }
    </SCRIPT>
    </head>
    <body>
    <div class="tophead">
    <script src="/ks_inc/ajax.js" type="text/javascript"></script>
    <!-- published at 2009-10-19 8:52:25 publish by baidu.com -->
    上面的代码在
    Match Tracer 2.1 和 RegexBuddy 3 中都能用
    <link rel="stylesheet"(.*\n)*.*o\.style\.zoom=zoom\+'%'匹配。可是经过我的多次测试得出:只要在红色的两段字符串之间加至少一个换行,在RegexBuddy 3 下立马就不匹配了注:在 Match Tracer 2.1下依然正常电脑上装RegexBuddy 的同学可以试一下,,我的RegexBuddy是最新版本!