问个正则表达式 很简单ubb标签的解决方案

问个正则表达式 很简单ubb标签的
插入表情的时候 在文本框显示 [em15] 请问用正则怎么匹配
在后台替换成 <img src="/img/mood/15.gif" border="0" />
另外在编辑的时候 又如何把数据<img src="/img/mood/15.gif" border="0" /> 替换成[em15]
需要两个版本 一个是js 一个是.net
由于对正则不熟 请帮忙下 谢谢

------解决方案--------------------
替换 [em15]
C# code

            string source = "xxxx[em15]xxxxx[em15]xxxxxx";
            string replacestr = @"<img src=""/img/mood/15.gif"" border=""0"" />";
            Regex reg = new Regex(@"\[em15\]");
            source = reg.Replace(source, replacestr);

------解决方案--------------------
探讨
不好意思 请问 在js中把[em15]替换成<img src="/img/mood/15.gif" border="0" /> 应该怎么写?