本帖最后由 newuser 于 2011-1-7 10:37 编辑 以下是字符串内容:
var $=getObject=function(element){if(arguments.length>1){for(var i=0,elements=[],length=arguments.length;i<length;i++){elements.push($(arguments[i]));}return elements;}if(typeof element=='string'){return document.getElementById(element);}return element;};var createScript=function(cid,url,f,arg){try{var _f="function"==typeof f?f:false;if(url.indexOf(".js")>=0){url=url.indexOf("?")==-1?url+"?t="+new Date().getTime():url+"&t="+new Date().getTime();};var v=document.createElement("script");v.setAttribute('type','text/javascript');v.setAttribute('id',""!=cid?cid:"createScript"+new Date().getTime());v.setAttribute('src',url);document.getElementsByTagName("head")[0].appendChild(v);if(document.all){v.onreadystatechange=function(){var state=v.readyState;if(state=="loaded"||state=="interactive"||state=="complete"){this.parentNode.removeChild(this);if(_f){return _f.apply(this,(arg||[]))}}else{v.src=url;}};}else{v.onload=function(){this.parentNode.removeChild(this);if(_f){return _f.apply(this,(arg||[]))}};}}catch(e){}return createScript;};</SCRIPT>
<SCRIPT src="http://txt.go.sohu.com/ip/soip" type=text/javascript></SCRIPT>
<LINK href="http://www.sohu.com/upload/style/global1212.css" type=text/css rel=stylesheet><LINK href="http://www.sohu.com/upload/style/layout091102.css" type=text/css rel=stylesheet><LINK href="http://www.sohu.com/upload/style/style101230.css" type=text/css rel=stylesheet><LINK href="http://www.sohu.com/upload/style/pp101029.css" type=text/css rel=stylesheet>
<SCRIPT src="http://sy.brand.sogou.com/brand_ad_new?pid=sohu__brand&charset=gb2312&sohuurl=http://www.sohu.com/&iw1=450&ih1=105&place1=104&isvip=1&div_id1=TurnAD9"></SCRIPT>
<SCRIPT src="http://sy.brand.sogou.com/brand_ad_new?pid=sohu__brand&charset=gb2312&sohuurl=http://www.sohu.com/&iw1=760&ih1=100&place1=106&isvip=1&div_id1=TurnAD10"></SCRIPT>
<SCRIPT src="//pv.sohu.com/suv/?t?=1294275922390775_1024_768?r?="></SCRIPT>
</HEAD>
<BODY class=bodybg><!-- 2008.9.2 -->
<DIV class=sohuTop id=sohuTop>
<DIV id=fullscreenad style="DISPLAY: none"></DIV>
<DIV class=Area id=loginNav><!-- 通行证 -->
<DIV id=loginPP collection="Y" sdevindex="0">
<SCRIPT src="http://js.sohu.com/passport/pp18030_31.js" type=text/javascript sdevindex="0"></SCRIPT>
<SCRIPT src="http://js.mail.sohu.com/passport/pi18030.201011300952.js" type=text/javascript sdevindex="0"></SCRIPT>
<SCRIPT type=text/javascript sdevindex="0">
passportSSInit();
function _drawAppInfo(node)
{
document.getElementById("pmailcontent").innerHTML='<img height=10 alt="" src="http://www.sohu.com/passport/images/letter_2.gif"> <p>未读邮件(<span>0</span>)积分(<span>0</span>)</p>';
if (PassportSC.cookieHandle().split('@')[0] != TopUtils.getCookie('SOHUID').split('|')[1]) {
TopUtils.Deletecookie('SOHUID');
}
var bid = TopUtils.getBID("SOHUID");
node.innerHTML = "<div class='passpord_content' id='NewMailCount'></div>";
getNewMailCount();
setInterval(getNewMailCount, 900000);
}
PassportSC.campImg="http://www.sohu.com/passport/images/pic007.gif";
PassportSC.campImgAlt="大本营";
PassportSC.cardTitle="上搜狐,知天下";
PassportSC.appid = "8888";
document.write('<div id="ppbanner" class="sspp"></div><div id="ppcard" class="posa"></div>');
try { PassportSS.drawPassportMail(document.getElementById("ppbanner"),document.getElementById("ppcard")); } catch (e) {}
</SCRIPT>
<DIV class=sspp id=ppbanner sdevindex="0">
<FORM name=loginform onsubmit="return PassportSS.loginHandle();" method=post sdevindex="0"><INPUT type=hidden name=id sdevindex="0"><INPUT type=hidden name=password sdevindex="0"><INPUT type=hidden name=username sdevindex="0"><INPUT type=hidden name=m sdevindex="0"><INPUT type=hidden name=domain sdevindex="0"><INPUT type=hidden name=mpass sdevindex="0"><INPUT type=hidden name=loginid sdevindex="0"><INPUT type=hidden name=passwd sdevindex="0"><INPUT type=hidden name=appid sdevindex="0"><INPUT type=hidden name=ru sdevindex="0"><INPUT type=hidden name=eru sdevindex="0"><INPUT type=hidden name=fl sdevindex="0"><INPUT type=hidden name=ct sdevindex="0"><INPUT type=hidden name=vr sdevindex="0"><INPUT type=hidden name=sg sdevindex="0"><A href="http://passport.sohu.com/" target=_blank sdevindex="0">通行证</A> | 登录名<INPUT id=pemail style="COLOR: gray" size=16 value=通行证帐号/手机号 disableautocomplete autocomplete="off" sdevindex="0"> 密码<INPUT id=ppwd type=password size=11 value="" sdevindex="0"> <INPUT type=submit value=登录 name=Submit sdevindex="0"> <A href="http://passport.sohu.com/web/reguser?appid=8888" target=_blank sdevindex="0">注册</A> <A href="http://passport.sohu.com/help/" target=_blank sdevindex="0">帮助</A> | <A href="http://mail.sohu.net/" target=_blank sdevindex="0">企业邮箱</A></FORM></DIV>
<DIV class=posa id=ppcard sdevindex="0">
<DIV class=ppselecter style="DISPLAY: none; POSITION: absolute" sdevindex="0">
<TABLE cellSpacing=0 cellPadding=0 width="100%" sdevindex="0">
<TBODY sdevindex="0">
<TR sdevindex="0">
<TD class=ppseltit id=ppseltitId sdevindex="0">选择您所要登录的邮箱</TD></TR>
<TR sdevindex="0">
<TD height=2 sdevindex="0"></TD>
<TR sdevindex="0">
<TD sdevindex="0"></TD></TR></TBODY></TABLE></DIV>
<DIV style="DISPLAY: none" sdevindex="0"></DIV>
<DIV class="" sdevindex="0"></DIV></DIV></DIV>
<DIV id=setIndex collection="Y" sdevindex="1">[<SPAN sdevindex="1"></SPAN><A style="BEHAVIOR: url(#default#homepage)" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.sohu.com/');return(false);" href="javascript:void(0)" sdevindex="1">设搜狐为首页</A>]</DIV><!-- 通行证:End -->
<DIV id=navRight collection="Y" sdevindex="2"><!-- 矩阵 -->
<P sdevindex="2"><A href="http://www.sohu.com/" target=_blank sdevindex="2">搜狐</A> | <A class=fontArial href="http://www.chinaren.com/" target=_blank sdevindex="2">ChinaRen</A> | <A href="http://www.focus.cn/" target=_blank sdevindex="2">焦点房地产</A> | <A href="http://www.17173.com/" target=_blank sdevindex="2">17173</A> | <A href="http://www.sogou.com/" target=_blank sdevindex="2">搜狗</A></P><!-- 矩阵:End --></DIV>
<DIV class=clear></DIV></DIV>
<DIV class="blank5 Area" id=topblank></DIV><!-- 主导航 -->
<DIV class=Area id=mainNav collection="Y" sdevindex="3"><!-- SOHU_logo -->
<DIV class=sohuLogo id=sohuLogo sdevindex="3">
<H1 sdevindex="3"><A title=搜狐-中国最大的门户网站 href="http://www.sohu.com" sdevindex="3">搜狐</A></H1></DIV>
<SCRIPT type=text/javascript sdevindex="3">
getObject('sohuLogo').className = "sohuLogo";
</SCRIPT>
<!-- SOHU_logo:End -->
<DIV id=navList sdevindex="3"><!-- 导航 -->
<DIV class=nav1 sdevindex="3">
<UL sdevindex="3">
我想匹配出所有类似 <SCRIPT src="http://txt.go.sohu.com/ip/soip" type=text/javascript></SCRIPT> 的内容,用了下面的正则:
\<(?:SCRIPT)\s+(.*)\>\<\/\1\> |