Cur*_*urt 3 regex vb.net string-formatting bbcode asp.net-3.5
如何转换[b]xxx[/b]为<strong>xxx</strong>使用VB.NET Regex.Replace()?
谢谢.
Regex.Replace("\[b\](.*?)\[\/b\]", "<strong>$1</strong>") 会做的
但是,您不需要正则表达式:
"[b]xxx[/b]".Replace("[b]","<strong>").Replace("[/b]","</strong>")