编程语言

img zituocn

今天终于把.net下的ubbcode写完了.

发表于2004/10/29 12:55:00  965人阅读

感觉还是不错.呵呵.
   //wmv ubbcode
   str = Regex.Replace(str,
    @"/[mp=*([0-9]*),*([0-9]*)/](.*)/[/mp/]",
   "<object align=middle classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 class=OBJECT id=MediaPlayer width=$1 height=$2 ><param name=ShowStatusBar value=-1><param name=Filename value=$3><embed type=application/x-oleobject codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 flename=mp src=$3 width=$1 height=$2></embed></object>"
    +"<br><br>源地址:<a href=/"$3/" target=_blank>$3</a>",
    RegexOptions.IgnoreCase);

阅读全文
0 0

相关文章推荐

img
取 消
img