")    'fString = replace(fString, "=""](http://[A-Za-z0-9./=?%-&_~`@':+!]+)" strContent = re.Replace(strContent,"$1") re.Pattern = "^(ftp://[A-Za-z0-9./=?%-&_~`@':+!]+)" strContent = re.Replace(strContent,"$1") re.Pattern = "(ftp://[A-Za-....">

当前位置:  编程技术>其它

ubbcode简单实用

    来源: 互联网  发布时间:2014-10-12

    本文导语:  ", ">")    'fString = replace(fString, "=""](http://[A-Za-z0-9./=?%-&_~`@':+!]+)" strContent = re.Replace(strContent,"$1") re.Pattern = "^(ftp://[A-Za-z0-9./=?%-&_~`@':+!]+)" strContent = re.Replace(strContent,"$1") re.Pattern = "(ftp://[A-Za-z0-9./=?%-&_~`@':+!]+)$" strContent = re.Replac...

", ">")
    'fString = replace(fString, "=""](http://[A-Za-z0-9./=?%-&_~`@':+!]+)"
 strContent = re.Replace(strContent,"$1")
 re.Pattern = "^(ftp://[A-Za-z0-9./=?%-&_~`@':+!]+)"
 strContent = re.Replace(strContent,"$1")
 re.Pattern = "(ftp://[A-Za-z0-9./=?%-&_~`@':+!]+)$"
 strContent = re.Replace(strContent,"$1")
 re.Pattern = "[^>=""](ftp://[A-Za-z0-9./=?%-&_~`@':+!]+)"
 strContent = re.Replace(strContent,"$1")
 re.Pattern = "^(rtsp://[A-Za-z0-9./=?%-&_~`@':+!]+)"
 strContent = re.Replace(strContent,"$1")
 re.Pattern = "(rtsp://[A-Za-z0-9./=?%-&_~`@':+!]+)$"
 strContent = re.Replace(strContent,"$1")
 re.Pattern = "[^>=""](rtsp://[A-Za-z0-9./=?%-&_~`@':+!]+)"
 strContent = re.Replace(strContent,"$1")
 re.Pattern = "^(mms://[A-Za-z0-9./=?%-&_~`@':+!]+)"
 strContent = re.Replace(strContent,"$1")
 re.Pattern = "(mms://[A-Za-z0-9./=?%-&_~`@':+!]+)$"
 strContent = re.Replace(strContent,"$1")
 re.Pattern = "[^>=""](mms://[A-Za-z0-9./=?%-&_~`@':+!]+)"
 strContent = re.Replace(strContent,"$1")

 

    re.Pattern="[DIR=*([0-9]*),*([0-9]*)](.[^[]*)[/DIR]"
 strContent=re.Replace(strContent,"")
 re.Pattern="[QT=*([0-9]*),*([0-9]*)](.[^[]*)[/QT]"
 strContent=re.Replace(strContent,"")
 re.Pattern="[MP=*([0-9]*),*([0-9]*)](.[^[]*)[/MP]"
 strContent=re.Replace(strContent,"")
 re.Pattern="[RM=*([0-9]*),*([0-9]*)](.[^[]*)[/RM]"
 strContent=re.Replace(strContent,"
")

 


    re.Pattern="([color=(.[^[]*)])(.[^[]*)([/color])"
    strContent=re.Replace(strContent,"$3")
    re.Pattern="([face=(.[^[]*)])(.[^[]*)([/face])"
    strContent=re.Replace(strContent,"$3")
    re.Pattern="([align=(.[^[]*)])(.*)([/align])"
    strContent=re.Replace(strContent,"

$3
")

    re.Pattern="([QUOTE])(.*)([/QUOTE])"
    strContent=re.Replace(strContent,"$2
")
    re.Pattern="([fly])(.*)([/fly])"
    strContent=re.Replace(strContent,"$2")
    re.Pattern="([move])(.*)([/move])"
    strContent=re.Replace(strContent,"$2") 
    re.Pattern="[GLOW=*([0-9]*),*(#*[a-z0-9]*),*([0-9]*)](.[^[]*)[/GLOW]"
    strContent=re.Replace(strContent,"$4")
    re.Pattern="[SHADOW=*([0-9]*),*(#*[a-z0-9]*),*([0-9]*)](.[^[]*)[/SHADOW]"
 strContent=re.Replace(strContent,"$4")

    re.Pattern="([i])(.[^[]*)([/i])"
    strContent=re.Replace(strContent,"$2")
    re.Pattern="([u])(.[^[]*)([/u])"
    strContent=re.Replace(strContent,"$2")
    re.Pattern="([b])(.[^[]*)([/b])"
    strContent=re.Replace(strContent,"$2")
    re.Pattern="([fly])(.[^[]*)([/fly])"
    strContent=re.Replace(strContent,"$2")

    re.Pattern="([size=1])(.[^[]*)([/size])"
    strContent=re.Replace(strContent,"$2")
    re.Pattern="([size=2])(.[^[]*)([/size])"
    strContent=re.Replace(strContent,"$2")
    re.Pattern="([size=3])(.[^[]*)([/size])"
    strContent=re.Replace(strContent,"$2")
    re.Pattern="([size=4])(.[^[]*)([/size])"
    strContent=re.Replace(strContent,"$2")
    re.Pattern="([center])(.[^[]*)([/center])"
    strContent=re.Replace(strContent,"$2")
    '以下扩展
    re.Pattern="([li])(.[^[]*)([/li])"
    strContent=re.Replace(strContent,"

  • $2
  • ")
        '字体背景
        re.Pattern="([fontbg=(.[^[]*)])(.[^[]*)([/fontbg])"
        strContent=re.Replace(strContent,"$3")
        '删除线
        re.Pattern="([strike])(.[^[]*)([/strike])"
        strContent=re.Replace(strContent,"$2")

        re.Pattern="([HTML])(.[^[]*)([/HTML])"
     strContent=re.Replace(strContent,"以下内容为程序代码:
    $2")
     re.Pattern="([code])(.[^[]*)([/code])"
     strContent=re.Replace(strContent,"以下内容为程序代码:
    $2")

     


        strContent=ChkBadWords(strContent)

        set re=Nothing
        UBBCode=strContent
    end function
    %>


        
     
     

    您可能感兴趣的文章:

     
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • JSP留言版中怎么使用UBBCODE呢 ?


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3