时间:2021-07-01 10:21:17 帮助过:1人阅读
", $str); //字体倾斜 $str = preg_replace("/\[i\]((.|\n)*?)\[\/i\]/i", "\${1}", $str); //FLASH动画UBB $str = preg_replace("/(\[flash\])(http:\/\/.[^\[]*(.swf))(\[\/flash\])/i", "[全屏欣赏] $str = preg_replace("/(\[flash=*([0-9]*),*([0-9]*)\])(http:\/\/.[^\[]*(.swf))(\[\/flash\])/i", "[全屏欣赏] //MEDIA PLAY播放UBB $str = preg_replace("/\[wmv\](.[^\[]*)\[\/wmv]/i", "", $str); $str = preg_replace("/\[wmv=*([0-9]*),*([0-9]*)\](.[^\[]*)\[\/wmv]/i", "", $str); //REALPLAY 播放UBB $str = preg_replace("/\[rm\](.[^\[]*)\[\/rm]/i", " ", $str); $str = preg_replace("/\[rm=*([0-9]*),*([0-9]*)\](.[^\[]*)\[\/rm]/i", " ", $str); $str = str_replace("\r\n", " ", $str); $str = preg_replace("/\[rm=*([0-9]*),*([0-9]*)\](.[^\[]*)\[\/rm]/i", " ", $str); /* re.pattern="\[code\]((.|\n)*?)\[\/code\]" Set tempcodes=re.Execute($str) For i=0 To tempcodes.count-1 re.pattern=" " tempcode=Replace(tempcodes(i)," ",vbcrlf) $str=replace($str,tempcodes(i),tempcode) next */ $searcharray = array("[/url]","[/email]","[/color]", "[/size]", "[/font]", "[/align]", "[b]", "[/b]","[u]", "[/u]", "[list]", "[list=1]", "[list=a]","[list=A]", "[*]", "[/list]", "[indent]", "[/indent]","[ DISCUZ_CODE_0 ]","[quote]","[/quote]","[tr]","[td]","[/td]","[/tr]","[/table]"); $replacearray= array("","","", "", "", "", "", "","", "", "
", ""," 提示:您可以先修改部分代码再运行","",""," |
"," | ","
http://www.bkjia.com/PHPjc/631908.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/631908.htmlTechArticle?php function ubbcode($str){ //$str = str_replace(file:,file :,$str); //$str = str_replace(files:,files :,$str); //$str = str_replace(script:,script :,$str); //$str = str_replace(j...