悬赏园豆:10
[已关闭问题]
<P>以下是我写的ubb编码转换函数,但是发现只要数据大时,打开速度特别慢,尤其是当论坛回复的数据内容特别多,同时有用UBB标签时,打开速度将更慢,请问诸位有什么好的解决方案,提升速度呢?或者帮指出效率低下的原因:论坛地址为<A href="http://www.rfidworld.com.cn/bbs/Thread-b15.htm"><FONT color=#810081>http://www.rfidworld.com.cn/bbs/Thread-b15.htm</FONT></A>(这里有比较多翻页数据)</P>
<P> </P>
<DIV class=cnblogs_code><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><IMG id=Codehighlighter1_0_6652_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_0_6652_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_0_6652_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_0_6652_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" align=top><IMG id=Codehighlighter1_0_6652_Open_Image style="DISPLAY: inline" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_0_6652_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_0_6652_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_0_6652_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><SPAN id=Codehighlighter1_0_6652_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">ubb编码转换Begin</SPAN><SPAN id=Codehighlighter1_0_6652_Open_Text style="DISPLAY: inline"><SPAN style="COLOR: #0000ff">#region</SPAN><SPAN style="COLOR: #000000"> ubb编码转换Begin</SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_29_166_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_29_166_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_29_166_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_29_166_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_29_166_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_29_166_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_29_166_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_29_166_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_29_166_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_29_166_Open_Text><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> ubb编码转换函数<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"></summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><param name="ubb"></SPAN><SPAN style="COLOR: #008000">要转换的字符串</SPAN><SPAN style="COLOR: #808080"></param></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><returns></returns></SPAN></SPAN><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> ConvertUBB(</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> ubb)<BR><IMG id=Codehighlighter1_226_715_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_226_715_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_226_715_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_226_715_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_226_715_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_226_715_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_226_715_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_226_715_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_226_715_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG alt="" src="http://www.cnblogs.com/Images/dot.gif"></SPAN><SPAN id=Codehighlighter1_226_715_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000">.IsNullOrEmpty(ubb))<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #800000">""</SPAN><SPAN style="COLOR: #000000">;<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (ubb.IndexOf(</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">[</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">) </SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #800080">1</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">||</SPAN><SPAN style="COLOR: #000000"> ubb.IndexOf(</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">) </SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #800080">1</SPAN><SPAN style="COLOR: #000000">)<BR><IMG id=Codehighlighter1_376_455_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_376_455_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_376_455_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_376_455_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_376_455_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_376_455_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_376_455_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_376_455_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_376_455_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG alt="" src="http://www.cnblogs.com/Images/dot.gif"></SPAN><SPAN id=Codehighlighter1_376_455_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> DeUrlLink(ubb).Replace(</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">\n</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><br /></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> DeUrl(ubb);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> DeUpload(ubb);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> DeImg(ubb);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> DeUrlLink(ubb);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> DeColor(ubb);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> DeFont(ubb);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> DecodeBlank(ubb);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> ubb;<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_725_862_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_725_862_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_725_862_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_725_862_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_725_862_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_725_862_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_725_862_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_725_862_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_725_862_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_725_862_Open_Text><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> 转换[URL]标签<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"></summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><param name="ubb"></SPAN><SPAN style="COLOR: #008000">要转换的字符串</SPAN><SPAN style="COLOR: #808080"></param></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><returns></returns></SPAN></SPAN><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> DeUrl(</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> ubb)<BR><IMG id=Codehighlighter1_918_1501_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_918_1501_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_918_1501_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_918_1501_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_918_1501_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_918_1501_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_918_1501_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_918_1501_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_918_1501_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG alt="" src="http://www.cnblogs.com/Images/dot.gif"></SPAN><SPAN id=Codehighlighter1_918_1501_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">(\[URL\])(.[^\[]*)(\[\/URL\])</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> , </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><a href=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">$</SPAN><SPAN style="COLOR: #800080">2</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> target=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">_blank\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">><u><font color=blue>$2</font></u></a></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">(\[URL=(.[^\[]*)\])(.[^\[]*)(\[\/URL\])</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> , </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><a href=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">$</SPAN><SPAN style="COLOR: #800080">2</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> target=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">_blank\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">><u><font color=blue>$3</font></u></a></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">(\[URL\])(\[\/URL\])</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">""</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">(\[URL=(.[^\[]*)\])(\[\/URL\])</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">""</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> ubb;<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_1511_1651_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1511_1651_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_1511_1651_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_1511_1651_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1511_1651_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1511_1651_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_1511_1651_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_1511_1651_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_1511_1651_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_1511_1651_Open_Text><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> 转换[UPLOAD]标签<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"></summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><param name="ubb"></SPAN><SPAN style="COLOR: #008000">要转换的字符串</SPAN><SPAN style="COLOR: #808080"></param></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><returns></returns></SPAN></SPAN><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> DeUpload(</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> ubb)<BR><IMG id=Codehighlighter1_1710_2421_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1710_2421_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_1710_2421_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_1710_2421_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1710_2421_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_1710_2421_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_1710_2421_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_1710_2421_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_1710_2421_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG alt="" src="http://www.cnblogs.com/Images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1710_2421_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[UPLOAD=(.[^\[]*)\](.[^\[]*)\[\/UPLOAD\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> , </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><br><a href=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">$</SPAN><SPAN style="COLOR: #800080">1</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> title=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">点击这里下载该文件\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> TARGET=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">_blank\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">><img src=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">Images</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #800080">1</SPAN><SPAN style="COLOR: #000000">.gif\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> border=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800080">0</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> /><font color=#0000CC>$2</font></a></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[UPLOAD=(.[^\[]*)\]\[\/UPLOAD\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> , </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><br><a href=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">$</SPAN><SPAN style="COLOR: #800080">1</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> title=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">点击这里下载该文件\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> TARGET=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">_blank\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">><img src=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">Images</SPAN><SPAN style="COLOR: #000000">/</SPAN><SPAN style="COLOR: #800080">1</SPAN><SPAN style="COLOR: #000000">.gif\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> border=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800080">0</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> /><font color=#0000CC>下载</font></a></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[UPLOAD=(.[^\[]*)\]\[\/UPLOAD\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">""</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> ubb.Replace(</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">Download.asp?</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">Download.aspx?</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> ubb;<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_2431_2568_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_2431_2568_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_2431_2568_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_2431_2568_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_2431_2568_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_2431_2568_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_2431_2568_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_2431_2568_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_2431_2568_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_2431_2568_Open_Text><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> 转换[IMG]标签<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"></summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><param name="ubb"></SPAN><SPAN style="COLOR: #008000">要转换的字符串</SPAN><SPAN style="COLOR: #808080"></param></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><returns></returns></SPAN></SPAN><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> DeImg(</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> ubb)<BR><IMG id=Codehighlighter1_2624_2961_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_2624_2961_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_2624_2961_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_2624_2961_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_2624_2961_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_2624_2961_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_2624_2961_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_2624_2961_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_2624_2961_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG alt="" src="http://www.cnblogs.com/Images/dot.gif"></SPAN><SPAN id=Codehighlighter1_2624_2961_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[IMG\](.[^\[]*)\[\/IMG\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><a href=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">$</SPAN><SPAN style="COLOR: #800080">1</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> TARGET=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">_blank\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">><img src=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">$</SPAN><SPAN style="COLOR: #800080">1</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> border=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800080">0</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> onload=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">javascript:</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.width</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #800080">600</SPAN><SPAN style="COLOR: #000000">)</SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.style.width</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #800080">600</SPAN><SPAN style="COLOR: #000000">;\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">></a></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[IMG\]\[\/IMG\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">""</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> ubb;<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_2971_3112_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_2971_3112_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_2971_3112_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_2971_3112_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_2971_3112_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_2971_3112_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_2971_3112_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_2971_3112_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_2971_3112_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_2971_3112_Open_Text><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> 对文章中的url进行超链接<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"></summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><param name="ubb"></SPAN><SPAN style="COLOR: #008000">要转换的字符串</SPAN><SPAN style="COLOR: #808080"></param></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><returns></returns></SPAN></SPAN><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> DeUrlLink(</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> ubb)<BR><IMG id=Codehighlighter1_3172_4120_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_3172_4120_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_3172_4120_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_3172_4120_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_3172_4120_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_3172_4120_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_3172_4120_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_3172_4120_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_3172_4120_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG alt="" src="http://www.cnblogs.com/Images/dot.gif"></SPAN><SPAN id=Codehighlighter1_3172_4120_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">^((?:http|ftp|rtsp|mms)://((?!&nbsp;|&quot;|&apos;)[A-Za-z0-9\./=\?%\-&_~`@':+!])+)</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> , </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><a target=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">_blank\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> href=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">$</SPAN><SPAN style="COLOR: #800080">1</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">><font color=blue><u>$1</u></font></a></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">([^>=""])((?:http|ftp|rtsp|mms)://((?!&nbsp;|&quot;|&apos;)[A-Za-z0-9\./=\?%\-&_~`@':+!])+)</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> , </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">$1<a target=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">_blank\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> href=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">$</SPAN><SPAN style="COLOR: #800080">2</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">><font color=blue><u>$2</u></font></a></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">^(www\.((?!&nbsp;|&quot;|&apos;)[A-Za-z0-9\./=\?%\-&_~`@':+!])+)</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> , </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><a target=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">_blank\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> href=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">http:</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">$1\">$1</a>", options);</SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000"> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">([^A-Za-z>=/\.\\""])(www\.((?!&nbsp;|&quot;|&apos;)[A-Za-z0-9\./=\?%\-&_~`@':+!])+)</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> , </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">$1<a target=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">_blank\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> href=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">http:</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">$2\"><font color=blue><u>$2</u></font></a>", options);</SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> ubb;<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_4130_4269_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_4130_4269_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_4130_4269_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_4130_4269_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_4130_4269_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_4130_4269_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_4130_4269_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_4130_4269_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_4130_4269_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_4130_4269_Open_Text><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> 转换[COLOR]标签<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"></summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><param name="ubb"></SPAN><SPAN style="COLOR: #008000">要转换的字符串</SPAN><SPAN style="COLOR: #808080"></param></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><returns></returns></SPAN></SPAN><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> DeColor(</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> ubb)<BR><IMG id=Codehighlighter1_4327_4592_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_4327_4592_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_4327_4592_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_4327_4592_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_4327_4592_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_4327_4592_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_4327_4592_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_4327_4592_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_4327_4592_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG alt="" src="http://www.cnblogs.com/Images/dot.gif"></SPAN><SPAN id=Codehighlighter1_4327_4592_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[color=(.[^\[]*)\](.[^\[]*)\[\/color\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><span style=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">color:$</SPAN><SPAN style="COLOR: #800080">1</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">>$2</span></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[color=(.[^\[]*)\]\[\/color\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">""</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> ubb;<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_4602_4736_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_4602_4736_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_4602_4736_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_4602_4736_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_4602_4736_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_4602_4736_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_4602_4736_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_4602_4736_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_4602_4736_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_4602_4736_Open_Text><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> 转换字体标签<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"></summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><param name="ubb"></SPAN><SPAN style="COLOR: #008000">要转换的字符串</SPAN><SPAN style="COLOR: #808080"></param></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><returns></returns></SPAN></SPAN><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> DeFont(</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> ubb)<BR><IMG id=Codehighlighter1_4793_6633_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_4793_6633_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_4793_6633_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_4793_6633_Closed_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_4793_6633_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_4793_6633_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_4793_6633_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_4793_6633_Open_Text').style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top> </SPAN><SPAN id=Codehighlighter1_4793_6633_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG alt="" src="http://www.cnblogs.com/Images/dot.gif"></SPAN><SPAN id=Codehighlighter1_4793_6633_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[i\](.[^\[]*)\[\/i\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><span style=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">font</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">style:italic\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">>$1</span></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[i\]\[\/i\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">""</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[u\](.[^\[]*)\[\/u\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><span style=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">text</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">decoration:underline\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">>$1</span></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[u\]\[\/u\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">""</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[b\](.[^\[]*)\[\/b\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><span style=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">font</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">weight:bold\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">>$1</span></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[b\](\[\/b\])</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">""</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[b\]\[\/b\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">""</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[QUOTE\](.[^\[]*)\[\/QUOTE\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> , </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><table style=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">width:</SPAN><SPAN style="COLOR: #800080">100</SPAN><SPAN style="COLOR: #000000">%</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> cellpadding=5 cellspacing=1><TR><TD style='border-right: #cccccc 1px solid; border-top:#cccccc 1px solid; border-left: #cccccc 1px solid; border-bottom: #cccccc 1px solid;background-color:#f6f6f6' width=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800080">100</SPAN><SPAN style="COLOR: #000000">%</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">>$1</td></tr></table></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[QUOTE\]\[\/QUOTE\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">""</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[EDIT\](.[^\[]*)\[\/EDIT\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, <BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><table align=center style=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">width:</SPAN><SPAN style="COLOR: #800080">100</SPAN><SPAN style="COLOR: #000000">%</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"> cellpadding=5 cellspacing=1><TR><TD align=left style='border-right: #f6f6f6 1px solid; border-top:#f6f6f6 1px solid; border-left: #f6f6f6 1px solid; border-bottom: #f6f6f6 1px solid;background-color:#f6f6f6' width=\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800080">100</SPAN><SPAN style="COLOR: #000000">%</SPAN><SPAN style="COLOR: #000000">\</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">>$1</td></tr></table></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">\[EDIT\]\[\/EDIT\]</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">""</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000"><(.*?)(?:javascript|vbscript)\s*:(.*?)></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000"><$1$2></SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> ubb </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Regex.Replace(ubb, </SPAN><SPAN style="COLOR: #800000">@"</SPAN><SPAN style="COLOR: #800000">(<.*?style=.*?):expression(.*?>)</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">$1$2</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">, options);<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> ubb;<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #0000ff">#endregion</SPAN></SPAN><SPAN style="COLOR: #000000"> ubb编码转换End</SPAN></DIV>