很不错的一个UBB代码(3)
RegExp.Pattern = "[^>=""](mms://[A-Za-z0-9\.\/=\?%\-&_~`@':+!]+)"
strValue=RegExp.Replace(strValue,"<a target=_blank href=$1>$1</a>")
RegExp.Pattern="(\[HTML\])(.[^\[]*)(\[\/HTML\])"
strValue=RegExp.Replace(strValue,"<table width='100%' border='0' cellspacing='0' cellpadding='6' bgcolor='#FFFFFF'><td><b>以下内容为程序代码:</b><br>$2</td></table>")
RegExp.Pattern="(\[code\])(.[^\[]*)(\[\/code\])"
strValue=RegExp.Replace(strValue,"<table width='100%' border='0' cellspacing='0' cellpadding='6' bgcolor='#FFFFFF'><td><b>以下内容为程序代码:</b><br>$2</td></table>")
RegExp.Pattern="(\[color=(.[^\[]*)\])(.[^\[]*)(\[\/color\])"
strValue=RegExp.Replace(strValue,"<font color=$2>$3</font>")
RegExp.Pattern="(\[face=(.[^\[]*)\])(.[^\[]*)(\[\/face\])"
strValue=RegExp.Replace(strValue,"<font face=$2>$3</font>")
RegExp.Pattern="(\[align=(.[^\[]*)\])(.*)(\[\/align\])"
strValue=RegExp.Replace(strValue,"<div align=$2>$3</div>")
RegExp.Pattern="(\[QUOTE\])(.*)(\[\/QUOTE\])"
strValue=RegExp.Replace(strValue,"<table cellpadding=0 cellspacing=0 border=0 WIDTH=94% bgcolor=#000000 align=center><tr><td><table width=100% cellpadding=5 cellspacing=1 border=0><TR><TD BGCOLOR='#FFFFFF'>$2</table></table><br>")
RegExp.Pattern="(\[fly\])(.*)(\[\/fly\])"
strValue=RegExp.Replace(strValue,"<marquee width=90% behavior=alternate scrollamount=3>$2</marquee>")
RegExp.Pattern="(\[move\])(.*)(\[\/move\])"
strValue=RegExp.Replace(strValue,"<MARQUEE scrollamount=3>$2</marquee>")
RegExp.Pattern="\[GLOW=*([0-9]*),*(#*[a-z0-9]*),*([0-9]*)\](.[^\[]*)\[\/GLOW]"
strValue=RegExp.Replace(strValue,"<table width=$1 style=""filter:glow(color=$2, strength=$3)"">$4</table>")
RegExp.Pattern="\[SHADOW=*([0-9]*),*(#*[a-z0-9]*),*([0-9]*)\](.[^\[]*)\[\/SHADOW]"
strValue=RegExp.Replace(strValue,"<table width=$1 style=""filter:shadow(color=$2, strength=$3)"">$4</table>")
RegExp.Pattern="(\[i\])(.[^\[]*)(\[\/i\])"
strValue=RegExp.Replace(strValue,"<i>$2</i>")
RegExp.Pattern="(\[u\])(.[^\[]*)(\[\/u\])"
strValue=RegExp.Replace(strValue,"<u>$2</u>")
RegExp.Pattern="(\[b\])(.[^\[]*)(\[\/b\])"
strValue=RegExp.Replace(strValue,"<b>$2</b>")
RegExp.Pattern="(\[fly\])(.[^\[]*)(\[\/fly\])"
strValue=RegExp.Replace(strValue,"<marquee>$2</marquee>")
RegExp.Pattern="(\[size=1\])(.[^\[]*)(\[\/size\])"
内容版权声明:除非注明,否则皆为本站原创文章。