{"id":670,"date":"2011-01-28T09:46:30","date_gmt":"2011-01-28T01:46:30","guid":{"rendered":""},"modified":"2014-03-11T22:36:23","modified_gmt":"2014-03-11T14:36:23","slug":"%e6%ad%a3%e5%88%99%e6%97%a0%e5%bf%a7-web%e7%89%88%e5%8a%a9%e6%89%8b%e5%b7%a5%e5%85%b7-webregexp-2-1","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2011\/01\/28\/670.htm","title":{"rendered":"\u6b63\u5219\u65e0\u5fe7-Web\u7248\u52a9\u624b\u5de5\u5177- (WebRegExp 2.1)"},"content":{"rendered":"<p>&lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&quot;&gt;<br \/>\n&lt;html xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot;&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=gb2312&quot; \/&gt;<br \/>\n&lt;title&gt; WebRegExp 1.0 &#8211; \u5ba2\u670d\u679c\u679c [ \u65e0\u5fe7\u7248 ] &lt;\/title&gt;<br \/>\n&lt;base href=&quot;http:\/\/www.dhooo.com\/web\/&quot; \/&gt;<br \/>\n&lt;style type=&quot;text\/css&quot;&gt;<br \/>\nbody{background:#2B3C53;}<br \/>\n*{font-size:12px;}<br \/>\n#win{<br \/>\nwidth:900px;font-size:12px;<br \/>\nposition:absolute;left:0;top:0;<br \/>\nbackground:#F1F0EA;<br \/>\nborder:2px outset;color:#000; <br \/>\n-moz-border-top-colors:#d4d0c8 white;<br \/>\n-moz-border-left-colors: #d4d0c8 white;<br \/>\n-moz-border-right-colors:#404040 #808080;<br \/>\n-moz-border-bottom-colors:#404040 #808080;<br \/>\n}<br \/>\nh4{<br \/>\nbackground:#35528E url(images\/caption.jpg) repeat-y 100% 0; <br \/>\nmargin:1px;padding:5px;cursor:default;<br \/>\ncolor:#fff;font-size:14px;font-family:Arial;<br \/>\n}<br \/>\nh4 div{<br \/>\nbackground:url(images\/ico.gif) no-repeat 2px 0; <br \/>\npadding-left:25px;<br \/>\n}<br \/>\n#about{ text-decoration:none;color:#000;padding:2px}<br \/>\n.menu{line-height:20px;padding:0px 10px}<br \/>\n.line{<br \/>\nfont-size:1px; line-height:1px;<br \/>\nbackground:#fff; margin:0 2px; height:1px;<br \/>\noverflow:hidden; border-top:1px solid #ACA899; <br \/>\n}<br \/>\n.ad{<br \/>\nbackground:#FF7B00 url(images\/regexp_ad.gif) no-repeat 50% 50%;<br \/>\nheight:60px; position:relative; <br \/>\n}<br \/>\n.ibody{margin:5px;}<br \/>\n.left{<br \/>\nwidth:250px;height:100%; <br \/>\nfloat:left;text-align:center; <br \/>\n}<br \/>\n.btnWrap{padding:5px 0;}<br \/>\nbutton{+margin-left:2px;padding:0px; }<br \/>\n#tabBtns a{<br \/>\ncolor:#000;text-decoration:none;<br \/>\ndisplay:block; float:left;margin-right:1px; <br \/>\nwidth:47px;height:20px;line-height:20px; <br \/>\nbackground:#fff url(images\/tab.gif) no-repeat 0 0; <br \/>\n}<br \/>\n.list_wrap{margin:5px;}<br \/>\n#tabBtns{z-index:10;border:0px solid #aaa; }<br \/>\n#tabBtns a:hover{<br \/>\nbackground:url(images\/tab.gif) no-repeat 0 -21px; <br \/>\n}<br \/>\n#tabBtns a.hot,#tabBtns a.hot:hover{<br \/>\nbackground:url(images\/tab.gif) no-repeat 0 100%; <br \/>\nwidth:52px; height:20px; position:relative;bottom:-1px;<br \/>\n}<br \/>\n.list_option{<br \/>\nbackground:#fff; margin:0px;padding:0px; <br \/>\nborder:1px solid #919B9C;display:none;<br \/>\n}<br \/>\n#list_match.list_option{display:block;}<br \/>\n.right{width:636px; float:right;}<br \/>\n.clear{clear:both;font-size:0px;overflow:hidden;height:0px; }<br \/>\n#colorText,textarea{<br \/>\nmargin:5px auto;height:100px; <br \/>\noverflow:auto;border:1px solid inset; <br \/>\n}<br \/>\n#colorText{background:#fff;text-align:left;word-wrap:break-word;overflow:hidden;}<br \/>\n#regexpText{width:236px}<br \/>\n#replaceText{height:30px;}<br \/>\n#regexpText{height:60px;}<br \/>\n#replaceText,#targetText,#resultText{width:620px}<br \/>\n#targetText{height:200px;background:#ddd;color:#000; }<br \/>\n#resultText{height:60px;color:#0099FF}<br \/>\nselect{width:216px;height:170px;margin:0px;padding:0px;margin-top:10px; }<br \/>\nfieldset{ text-align:center;padding:0; margin:10px 0 0 0}<br \/>\nlegend{margin-left:10px;color:#000; }<br \/>\n&lt;\/style&gt;<\/p>\n<p>\n&nbsp;<\/p>\n<p>&lt;\/head&gt;<\/p>\n<p>\n&nbsp;<\/p>\n<p>&lt;body&gt;<br \/>\n&lt;div id=&quot;win&quot;&gt;<br \/>\n&lt;h4&gt;&lt;div id=&quot;caption&quot;&gt;WebRegExp 1.0 &#8211; \u5ba2\u670d\u679c\u679c [ \u65e0\u5fe7\u7248 ]&lt;\/div&gt;&lt;\/h4&gt;<br \/>\n&lt;div class=&quot;menu&quot;&gt;&lt;a href=&quot;javascript:void(0)&quot; id=&quot;about&quot; onclick=&quot;alert(&#8216;\u611f\u8c22\u4f7f\u7528WebRegExp 1.0&#8217;)&quot;&gt;\u5173\u4e8e(&lt;u&gt;A&lt;\/u&gt;)&lt;\/a&gt;&lt;\/div&gt;<br \/>\n&lt;div class=&quot;line&quot;&gt;&lt;\/div&gt;<br \/>\n&lt;div class=&quot;ad&quot;&gt;&lt;\/div&gt;<br \/>\n&lt;div class=&quot;ibody&quot;&gt;<br \/>\n&lt;div class=&quot;left&quot;&gt;<br \/>\n&lt;fieldset&gt;<br \/>\n&lt;legend&gt;\u6b63\u5219\u5f0f\u8f93\u5165&lt;\/legend&gt;<br \/>\n&lt;textarea id=&quot;regexpText&quot;&gt;&lt;[^&gt;]+&gt;&lt;\/textarea&gt;<br \/>\n&lt;div class=&quot;btnWrap&quot;&gt;<br \/>\n&lt;button id=&quot;doOut&quot;&gt;\u8f93\u51fa&lt;\/button&gt;<br \/>\n&lt;button id=&quot;doTrim&quot;&gt;\u5254\u9664&lt;\/button&gt;<br \/>\n&lt;button id=&quot;doReplace&quot;&gt;\u66ff\u6362&lt;\/button&gt;<br \/>\n&lt;button id=&quot;doNext&quot;&gt;\u67e5\u627e\u4e0b\u4e00\u4e2a&lt;\/button&gt;<br \/>\n&lt;button id=&quot;doFind&quot;&gt;\u5217\u8868&lt;\/button&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/fieldset&gt;<br \/>\n&lt;fieldset &gt;<br \/>\n&lt;legend&gt;\u6a21\u5f0f\u5339\u914d&lt;\/legend&gt;<br \/>\n&lt;label for=&quot;isI&quot;&gt;&lt;input type=&quot;checkbox&quot; id=&quot;isI&quot; m=&quot;i&quot; \/&gt;\u5ffd\u7565\u5927\u5c0f\u5199&lt;\/label&gt;<br \/>\n&lt;label for=&quot;isM&quot;&gt;&lt;input type=&quot;checkbox&quot; id=&quot;isM&quot; m=&quot;m&quot; \/&gt;\u591a\u884c\u6a21\u5f0f&lt;\/label&gt;<br \/>\n&lt;label for=&quot;isG&quot;&gt;&lt;input type=&quot;checkbox&quot; id=&quot;isG&quot; m=&quot;g&quot; checked \/&gt;\u5168\u5c40\u6a21\u5f0f&lt;\/label&gt;<br \/>\n&lt;\/fieldset&gt;<br \/>\n&lt;fieldset class=&quot;&quot;&gt;<br \/>\n&lt;legend&gt;\u5e38\u7528\u6b63\u5219\u5f0f&lt;\/legend&gt;<br \/>\n&lt;div class=&quot;list_wrap&quot;&gt;<br \/>\n&lt;div id=&quot;tabBtns&quot;&gt;<br \/>\n&lt;a href=&quot;javascript:void(0)&quot; title=&quot;&quot;&gt;\u9a8c\u8bc1&lt;\/a&gt;<br \/>\n&lt;a href=&quot;javascript:void(0)&quot; title=&quot;&quot; class=&quot;hot&quot;&gt;\u63d0\u53d6&lt;\/a&gt;<br \/>\n&lt;a href=&quot;javascript:void(0)&quot; title=&quot;&quot;&gt;\u5254\u9664&lt;\/a&gt;<br \/>\n&lt;div class=&quot;clear&quot;&gt;&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;div id=&quot;all_list&quot;&gt;<br \/>\n&lt;div class=&quot;list_option&quot; id=&quot;list_check&quot;&gt;<br \/>\n&lt;select id=&quot;exps1&quot; size=&quot;2&quot;&gt;&lt;\/select&gt; <br \/>\n&lt;\/div&gt;<br \/>\n&lt;div class=&quot;list_option&quot; id=&quot;list_match&quot;&gt;<br \/>\n&lt;select id=&quot;exps2&quot; size=&quot;2&quot;&gt;&lt;\/select&gt; <br \/>\n&lt;\/div&gt;<br \/>\n&lt;div class=&quot;list_option&quot; id=&quot;list_trim&quot;&gt;<br \/>\n&lt;select id=&quot;exps3&quot; size=&quot;2&quot;&gt;&lt;\/select&gt; <br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/fieldset&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;div class=&quot;right&quot;&gt;<br \/>\n&lt;fieldset&gt;<br \/>\n&lt;legend&gt;\u6d4b\u8bd5\u6587\u672c&lt;\/legend&gt;<br \/>\n&lt;textarea id=&quot;targetText&quot;&gt;<br \/>\n&lt;!&#8211; testText&#8211;&gt;<br \/>\n&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;4&quot; width=&quot;100%&quot; align=&quot;center&quot; class=&quot;t_row&quot;&gt;<br \/>\n&lt;tr style=&quot;height: 100%&quot;&gt;<br \/>\n&lt;td width=&quot;18%&quot; valign=&quot;top&quot; class=&quot;t_user&quot;&gt;&lt;a name=&quot;pid575004&quot;&gt;&lt;\/a&gt; &lt;a name=&quot;newpost&quot;&gt;&lt;\/a&gt; &lt;a href=&quot;space.php?uid=94039&quot; target=&quot;_blank&quot; class=&quot;bold&quot;&gt;\u5ba2\u670d\u679c\u679c&lt;\/a&gt;<br \/>\n&lt;br&gt;&lt;div class=&quot;smalltxt&quot;&gt;<br \/>\n\u722c\u866b&lt;br&gt;<br \/>\n&lt;img src=&quot;images\/default\/star_level2.gif&quot; alt=&quot;Rank: 2&quot; \/&gt;&lt;br&gt;<br \/>\n&lt;br&gt;<br \/>\n&lt;table width=&quot;95%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; style=&quot;table-layout: fixed; overflow: hidden&quot;&gt;<br \/>\n&lt;tr&gt;&lt;td align=&quot;center&quot;&gt;&lt;div class=&quot;avatar&quot; style=&quot;width: 70&quot;&gt;&lt;img src=&quot;images\/avatars\/16.gif&quot; width=&quot;70&quot; height=&quot;80&quot; border=&quot;0&quot; alt=&quot;&quot; \/&gt;&lt;\/div&gt;&lt;\/td&gt;&lt;\/tr&gt;&lt;\/table&gt;<br \/>\n&lt;!&#8211; testText end&#8211;&gt;<br \/>\n&lt;\/textarea&gt;<br \/>\n&lt;\/fieldset&gt;<br \/>\n&lt;fieldset &gt;<br \/>\n&lt;legend&gt;\u66ff\u6362\u6587\u672c&lt;\/legend&gt;<br \/>\n&lt;textarea id=&quot;replaceText&quot;&gt;dhooo&lt;\/textarea&gt;<br \/>\n&lt;\/fieldset&gt;<br \/>\n&lt;fieldset&gt;<br \/>\n&lt;legend id=&quot;reInfo&quot;&gt;\u67e5\u627e\u7ed3\u679c&lt;\/legend&gt;<br \/>\n&lt;textarea id=&quot;resultText&quot;&gt;&lt;\/textarea&gt;<br \/>\n&lt;\/fieldset&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;div class=&quot;clear&quot;&gt;&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;script&gt;<br \/>\nldh={<br \/>\nex:function(main,ex){for(var k in (ex||{}))main[k]=ex[k];return main}<br \/>\n,each:function(list,fn){for(var i=0;i&lt;list.length;i++)fn.call(list[i],i,list)}<br \/>\n,chk:function $chk(obj){return !!(obj || obj === 0)}<br \/>\n,find:function(selector,box){<br \/>\nif(typeof(selector)!=&#8217;string&#8217;)return selector;<br \/>\nif(selector.charAt(0)==&#8217;.&#8217;)return (function(className,box){<br \/>\nvar list=[];<br \/>\nldh.each(ldh.find(&#8216;*&#8217;,box),function (i){<br \/>\nif(this.className.indexOf(className)!=-1)list.push(this)<br \/>\n})<br \/>\nreturn list;<br \/>\n})(selector.replace(&#8216;.&#8217;,&#8221;),ldh.find(box));<br \/>\nif(selector.charAt(0)==&#8217;#&#8217;)return document.getElementById(selector.replace(&#8216;#&#8217;,&#8221;));<br \/>\nreturn (ldh.find(box)||document).getElementsByTagName(selector);<br \/>\n}<br \/>\n};<\/p>\n<p>\n&nbsp;<\/p>\n<p>ldh.ex(ldh,{<br \/>\ndrag:function(hander,ini){<br \/>\nini=ldh.ex({win:false,dir:&#8217;xy&#8217;},ini);<br \/>\nvar mover=ini.win||hander;<br \/>\nmover.style.position=&quot;absolute&quot;;<br \/>\nhander.onmousedown=function (e){<br \/>\ne=window.event||e;<br \/>\nthis.x=e.clientX-mover.offsetLeft;<br \/>\nthis.y=e.clientY-mover.offsetTop;<br \/>\nif(document.all){<br \/>\nhander.onlosecapture=dragStop;<br \/>\nhander.setCapture();<br \/>\n}else{<br \/>\nwindow.onblur=dragStop;<br \/>\n}<br \/>\ndocument.onmousemove=function(e){<br \/>\ne=window.event||e;<br \/>\nvar x=e.clientX-hander.x,y=e.clientY-hander.y;<br \/>\nldh.chk(ini.left)&amp;&amp;(x=Math.max(x,ini.left));<br \/>\nldh.chk(ini.top)&amp;&amp;(y=Math.max(y,ini.top));<br \/>\nldh.chk(ini.right)&amp;&amp;(x=Math.min(x,ini.right));<br \/>\nldh.chk(ini.bottom)&amp;&amp;(y=Math.min(y,ini.bottom));<br \/>\nif(ini.dir.indexOf(&#8216;x&#8217;)!=-1)mover.style.left=x+&quot;px&quot;;<br \/>\nif(ini.dir.indexOf(&#8216;y&#8217;)!=-1)mover.style.top=y+&quot;px&quot;;<br \/>\nif(document.all){ hander.setCapture();e.cancelBubble=true;<br \/>\n}else{e.preventDefault();e.stopPropagation(); <br \/>\n}<br \/>\nwindow.getSelection &amp;&amp; window.getSelection().removeAllRanges(); <br \/>\n};<br \/>\nfunction dragStop(){<br \/>\ndocument.onmousemove=document.onmouseup=null;<br \/>\nif(document.all){hander.onlosecapture=null;hander.releaseCapture();<br \/>\n}else{window.onblur=null}<br \/>\n}<br \/>\ndocument.onmouseup=dragStop;<br \/>\n};<br \/>\n}<br \/>\n})<br \/>\n$=ldh.find;<br \/>\nvar Attr=function (key,value){return value?(this.setAttribute(key,value),this):this.getAttribute(key)};<br \/>\nvar commad=function(){},prevPos=0,resultList=[];<br \/>\nldh.each(ldh.find(&#8216;INPUT&#8217;),function (){this.onclick=applySearch})<br \/>\nfunction applySearch(){<br \/>\nvar mode=&#8221;,re,beginTime=new Date;<br \/>\nldh.each(ldh.find(&#8216;INPUT&#8217;),function (){if(this.checked)mode+=Attr.call(this,&#8217;m&#8217;)});<br \/>\nif($(&#8216;#regexpText&#8217;).value==&#8221;){re=null}<br \/>\nelse{try{re=new RegExp($(&#8216;#regexpText&#8217;).value,mode)<br \/>\n}catch(e){re=null} <br \/>\n}<br \/>\nvar mArr=String($(&#8216;#targetText&#8217;).value).match(re);<br \/>\n$(&#8216;#resultText&#8217;).value=&#8221;;<br \/>\nif(!(mArr instanceof Array))mArr=[];<br \/>\nresultList=mArr;<br \/>\nvar time=&#8217;\u5171\u8017\u65f6 &lt;strong style=&quot;color:#009900&quot;&gt;&#8217;+(new Date-beginTime)+&quot;&lt;\/strong&gt; \u6beb\u79d2&quot;<br \/>\ncommand(mArr,re,mode,time);<br \/>\n}<br \/>\nif(document.all){<br \/>\nvar rngTarget=$(&#8216;#targetText&#8217;).createTextRange(),firstRng=rngTarget.getBookmark();<br \/>\n}<br \/>\nfunction findText(text){ <br \/>\nif(!text)return;<br \/>\nrngTarget.collapse(true); <br \/>\nif(rngTarget.findText(text)){ <br \/>\nrngTarget.select(); <br \/>\nrngTarget.collapse(false); <br \/>\n}else{<br \/>\nrngTarget.moveStart(&#8216;character&#8217;,-$(&#8216;#targetText&#8217;).value.length);<br \/>\n} <br \/>\n} ;<br \/>\n(function (){<br \/>\n$(&#8216;#regexpText&#8217;).onchange=function(){resultList=[];}<br \/>\n$(&#8216;#exps1&#8217;).onchange=<br \/>\n$(&#8216;#exps2&#8217;).onchange=<br \/>\n$(&#8216;#exps3&#8217;).onchange=function (){$(&#8216;#regexpText&#8217;).value=this.value;resultList=[]};<br \/>\n($(&#8216;#doFind&#8217;).onclick=function (){<br \/>\ncommand=function(mArr,a,b,c){<br \/>\n$(&#8216;#reInfo&#8217;).innerHTML=&#8217;\u67e5\u627e\u7ed3\u679c(\u5171\u627e\u5230 &lt;strong style=&quot;color:red&quot;&gt;&#8217;+mArr.length+'&lt;\/strong&gt; \u4e2a\u5339\u914d,&#8217;+c+&#8217;)&#8217;;<br \/>\nif(mArr.length==0)return $(&#8216;#resultText&#8217;).value=&#8217;\u6ca1\u6709\u627e\u5230\u5339\u914d\u9879&#8217;;<br \/>\nvar txt=[];<br \/>\nldh.each(mArr,function (i){txt.push((i+1)+&#8217;. &#8216;+this+&#8217;\\n&#8217;)});<br \/>\n$(&#8216;#resultText&#8217;).value=txt.join(&#8221;);<br \/>\n};<br \/>\napplySearch();<br \/>\n})();<br \/>\n$(&#8216;#doReplace&#8217;).onclick=function (){<br \/>\ncommand=function (mArr,re,b,c){<br \/>\n$(&#8216;#resultText&#8217;).value=$(&#8216;#targetText&#8217;).value.replace(re,$(&#8216;#replaceText&#8217;).value);<br \/>\n$(&#8216;#reInfo&#8217;).innerHTML=&#8217;\u5df2\u66ff\u6362 &lt;strong style=&quot;color:red&quot;&gt;&#8217;+mArr.length+'&lt;\/strong&gt; \u4e2a\u5339\u914d\u9879 (&#8216;+c+&#8217;)&#8217;<br \/>\n}<br \/>\napplySearch();<br \/>\n};<br \/>\n$(&#8216;#doTrim&#8217;).onclick=function (){<br \/>\ncommand=function (mArr,re,b,c){<br \/>\n$(&#8216;#resultText&#8217;).value=$(&#8216;#targetText&#8217;).value.replace(re,&#8221;);<br \/>\n$(&#8216;#reInfo&#8217;).innerHTML=&#8217;\u5df2\u5254\u9664 &lt;strong style=&quot;color:red&quot;&gt;&#8217;+mArr.length+'&lt;\/strong&gt; \u4e2a\u5339\u914d\u9879 (&#8216;+c+&#8217;)&#8217;<br \/>\n}<br \/>\napplySearch();<br \/>\n};<br \/>\n$(&#8216;#doOut&#8217;).onclick=function (){<br \/>\ncommand=function (mArr,re,mode,c){<br \/>\n$(&#8216;#resultText&#8217;).value=$(&#8216;#targetText&#8217;).value.replace(re,&#8221;);<br \/>\n$(&#8216;#reInfo&#8217;).innerHTML=&#8217;JavaScript\u4ee3\u7801 (&#8216;+c+&#8217;)&#8217;;<br \/>\nif(mArr.length==0)return $(&#8216;#resultText&#8217;).value=&#8217;\u7531\u4e8e\u6ca1\u6709\u4efb\u4f55\u5339\u914d\u9879\uff0c\u6240\u4ee5\u672a\u80fd\u8f93\u51fa\u6b63\u5219\u8868\u8fbe\u5f0f!&#8217;;<br \/>\nmode=mode?&#8217;,&quot;&#8217;+mode+&#8217;&quot;&#8217;:&#8221;;<br \/>\nvar txt=$(&#8216;#regexpText&#8217;).value.replace(\/\\\\\/g,&#8217;\\\\\\\\&#8217;)<br \/>\n$(&#8216;#resultText&#8217;).value=&#8217;myRegExp=new RegExp(&quot;&#8217;+txt+&#8217;&quot;&#8217;+mode+&#8217;);&#8217;;<br \/>\n}<br \/>\napplySearch();<br \/>\n};<br \/>\n$(&#8216;#doNext&#8217;).onclick=function (){<br \/>\nif(resultList.length==0){applySearch()}<br \/>\nvar m=resultList.shift()<br \/>\nfindText(m);<br \/>\n$(&#8216;#resultText&#8217;).value=m?m:&#8217;\u6ca1\u6709\u627e\u5230\u5339\u914d\u9879&#8217;;<br \/>\n}<br \/>\nldh.each($(&#8216;A&#8217;,&#8217;#tabBtns&#8217;),function (i){<br \/>\nthis.index=i;<br \/>\nthis.onkeydown=blur;<br \/>\nthis.onclick=function (){<br \/>\nvar List=$(&#8216;DIV&#8217;,&#8217;#all_list&#8217;);<br \/>\nvar Btns=$(&#8216;A&#8217;,&#8217;#tabBtns&#8217;);<br \/>\nldh.each(Btns,function(){this.className=&#8221;});<br \/>\nthis.className=&#8217;hot&#8217;;<br \/>\nldh.each(List,function(){this.style.display=&#8217;none&#8217;});<br \/>\nList[this.index].style.display=&#8217;block&#8217;;<br \/>\n}<br \/>\n});<br \/>\nldh.each([<br \/>\n{text:&#8217;\u5408\u6cd5\u5e10\u53f7&#8217;,value:&#8217;^[a-zA-Z][a-zA-Z0-9_]{4,15}$&#8217; }<br \/>\n,{text:&#8217;\u56fe\u7247\u6587\u4ef6&#8217;,value:&#8217;.*(.jpg|.jpeg|.gif|.png)$&#8217;}<br \/>\n,{text:&#8217;E-mail&#8217;,value:&#8217;^\\\\w+([-+.]\\\\w+)*@\\\\w+([-.]\\\\w+)*\\\\.\\\\w+([-.]\\\\w+)*$&#8217;}<br \/>\n,{text:&#8217;\u8eab\u4efd\u8bc1&#8217;,value:&#8217;^\\\\d{15}|\\\\d{18}$&#8217;}<br \/>\n,{text:&#8217;QQ\u53f7&#8217;,value:&#8217;^[1-9]*[1-9][0-9]*$&#8217;}<br \/>\n,{text:&#8217;\u5168\u4e2d\u6587&#8217;,value:&#8217;^[\\\\u4e00-\\\\u9fa5]+$&#8217;}<br \/>\n,{text:&#8217;\u624b\u673a\u53f7\u7801&#8217;,value:&#8217;^13\\\\d{9}|15[89]\\\\d{8}|189\\\\d{8}$&#8217;}<br \/>\n,{text:&#8217;\u56fa\u5b9a\u7535\u8bdd&#8217;,value:&#8217;^((\\\\d{3}|\\\\d{4})-?)?(\\\\d{8}|\\\\d{7})$&#8217;}<br \/>\n,{text:&#8217;\u90ae\u653f\u7f16\u7801&#8217;,value:&#8217;^[1-9]{1}(\\\\d+){5}$&#8217;}<br \/>\n,{text:&#8217;URL&#8217;,value:&#8217;http:\\\/\\\/([\\\\w-]+\\\\.)+[\\\\w-]+(\\\/\\\\[\\\\w- .\\\/?%&amp;=\\\\]*)?&#8217;}<br \/>\n,{text:&#8217;IP\u5730\u5740&#8217;,value:&#8217;^(\\\\d{1,2}|1\\\\d\\\\d|2[0-4]\\\\d|25[0-5])\\\\.(\\\\d{1,2}|1\\\\d\\\\d|2[0-4]\\\\d|25[0-5])\\\\.(\\\\d{1,2}|1\\\\d\\\\d|2[0-4]\\\\d|25[0-5])\\\\.(\\\\d{1,2}|1\\\\d\\\\d|2[0-4]\\\\d|25[0-5])$&#8217;}<br \/>\n,{text:&#8217;\u6570\u5b57&#8217;,value:&#8217;^[+|-]?\\\\d*\\\\.?\\\\d*$&#8217;}<br \/>\n,{text:&#8217;\u6b63\u6574\u6570&#8217;,value:&#8217;^[1-9]\\\\d*$&#8217;}<br \/>\n,{text:&#8217;\u8d1f\u6574\u6570&#8217;,value:&#8217;^-[1-9]\\\\d*$&#8217;}<br \/>\n,{text:&#8217;\u4efb\u610f\u6574\u6570&#8217;,value:&#8217;^-?[1-9]\\\\d*$&#8217;}<br \/>\n,{text:&#8217;\u6b63\u6d6e\u70b9\u6570&#8217;,value:&#8217;^[1-9]\\\\d*\\\\.\\\\d*|0\\\\.\\\\d*[1-9]\\\\d*$&#8217;}<br \/>\n,{text:&#8217;\u8d1f\u6d6e\u70b9\u6570&#8217;,value:&#8217;^-([1-9]\\\\d*\\\\.\\\\d*|0\\\\.\\\\d*[1-9]\\\\d*)$&#8217;}<br \/>\n,{text:&#8217;\u4efb\u610f\u6d6e\u70b9\u6570&#8217;,value:&#8217;^-?([1-9]\\\\d*\\\\.\\\\d*|0\\\\.\\\\d*[1-9]\\\\d*|0?\\\\.0+|0)$&#8217;}<br \/>\n,{text:&#8217;\u82f1\u6587\u5b57\u6bcd&#8217;,value:&#8217;^[A-Za-z]+$&#8217;}<br \/>\n,{text:&#8217;\u5c0f\u5199\u82f1\u6587\u5b57\u6bcd&#8217;,value:&#8217;^[a-z]+$&#8217;}<br \/>\n,{text:&#8217;\u5927\u5199\u82f1\u6587\u5b57\u6bcd&#8217;,value:&#8217;^[A-Z]+$&#8217;}<br \/>\n],function (){var O=$(&#8216;#exps1&#8217;).options;O[O.length]=new Option(this.text,this.value)});<br \/>\nldh.each([<br \/>\n{text:&#8217;img\u6807\u7b7e&#8217;,value:'&lt;img[^&gt;]+&gt;&#8217; }<br \/>\n,{text:&#8217;\u94fe\u63a5&#8217;,value:'&lt;a[^&gt;]+&gt;(.*?)&lt;\\\\\/a&gt;&#8217;}<br \/>\n,{text:&#8217;\u56fe\u7247\u5730\u5740&#8217;,value:'(s|S)(r|R)(c|C) *= *(\\\\\\&#8217;|\\\\\\&quot;)?(\\\\w|\\\\\\\\|\\\\\/|\\\\.|:)+(\\\\4)&#8217;}<br \/>\n,{text:&#8217;\u94fe\u63a5\u5730\u5740&#8217;,value:&#8217;href=(]+)(\\\\1)&#8217;&quot;&gt;\\\\&quot;|\\\\\\&#8217;|)([^\\\\&quot;\\\\\\'&lt;&gt;]+)(\\\\1)&#8217;}<br \/>\n,{text:&#8217;\u4e2d\u6587\u5b57\u7b26&#8217;,value:'[\\\\u4e00-\\\\u9fa5]&#8217;}<br \/>\n,{text:&#8217;\u53cc\u5b57\u8282\u5b57\u7b26&#8217;,value:'[^\\\\x00-\\\\xff]&#8217;}<br \/>\n,{text:&#8217;\u6587\u4ef6\u540d&#8217;,value:'([^\\\\\\\/]*?)(?:\\\\.\\\\w+)$&#8217;}<br \/>\n],function (){var O=$(&#8216;#exps2&#8217;).options;O[O.length]=new Option(this.text,this.value)});<br \/>\nldh.each([<br \/>\n{text:&#8217;\u7a7a\u884c&#8217;,value:&#8217;\\\\n[\\\\s| ]*\\\\r&#8217;}<br \/>\n,{text:&#8217;HTML\u6807\u7b7e&#8217;,value:'&lt;[^&gt;]+&gt;&#8217;}<br \/>\n,{text:&#8217;\u9996\u5c3e\u7a7a\u683c&#8217;,value:'(^\\\\s*)|(\\\\s*$)&#8217;}<br \/>\n],function (){var O=$(&#8216;#exps3&#8217;).options;O[O.length]=new Option(this.text,this.value)});<br \/>\nif(!document.all)$(&#8216;#doNext&#8217;).disabled=true;<br \/>\nldh.drag(ldh.find(&#8216;#caption&#8217;),{win:ldh.find(&#8216;#win&#8217;),left:0,top:0});<br \/>\n})()<br \/>\n&lt;\/script&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-670","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=670"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/670\/revisions"}],"predecessor-version":[{"id":66534,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/670\/revisions\/66534"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=670"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=670"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}