re.Pattern = "([i])(.[^[]*)([/i])"
strContent = re.Replace(strContent, "<i>$2</i>")
re.Pattern = "([u])(.[^[]*)([/u])"
strContent = re.Replace(strContent, "<u>$2</u>")
re.Pattern = "([b])(.[^[]*)([/b])"
strContent = re.Replace(strContent, "<b>$2</b>")
re.Pattern = "([fly])(.*)([/fly])"
strContent = re.Replace(strContent, "<marquee>$2</marquee>")
re.Pattern = "[size=([1-9])](.[^[]*)[/size]"
strContent = re.Replace(strContent, "<font size=$1>$2</font>")
re.Pattern = "([center])(.[^[]*)([/center])"
strContent = re.Replace(strContent, "<center>$2</center>")
re.Pattern = "[DIR=*([0-9]*),*([0-9]*)](.[^[]*)[/DIR]"
strContent = re.Replace(strContent, "<embed src=$3 pluginspage=http://www.macromedia.com/shockwave/download/ width=$1 height=$2></embed>")
re.Pattern = "[QT=*([0-9]*),*([0-9]*)](.[^[]*)[/QT]"
strContent = re.Replace(strContent, "<embed src=$3 width=$1 height=$2 autoplay=true loop=false controller=true playeveryframe=false cache=false scale=TOFIT bgcolor=#000000 kioskmode=false targetcache=false pluginspage=http://www.apple.com/quicktime/>")
re.Pattern = "[MP=*([0-9]*),*([0-9]*)](.[^[]*)[/MP]"
strContent = re.Replace(strContent, "<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>")
re.Pattern = "[RM=*([0-9]*),*([0-9]*)](.[^[]*)[/RM]"
strContent = re.Replace(strContent, "<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA class=OBJECT id=RAOCX width=$1 height=$2><PARAM NAME=SRC VALUE=$3><PARAM NAME=CONSOLE VALUE=Clip1><PARAM NAME=CONTROLS VALUE=imagewindow><PARAM NAME=AUTOSTART VALUE=true></OBJECT><br><OBJECT classid=CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA height=32 id=video2 width=$1><PARAM NAME=SRC VALUE=$3><PARAM NAME=AUTOSTART VALUE=-1><PARAM NAME=CONTROLS VALUE=controlpanel><PARAM NAME=CONSOLE VALUE=Clip1></OBJECT>")









