using System;
using System.Text.RegularExpressions;
public class Test
{
public static void Main()
{
string s = "fsdfs [b]abc[/b] dddfs [b]abc[/b] fdsfdsfs [b]abcfsdfs";
string result = Regex.Replace(s, @"\[b\](.*?)\[/b\]", @"<strong>$1</strong>");
Console.WriteLine(result);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyAgU3lzdGVtLlRleHQuUmVndWxhckV4cHJlc3Npb25zOwoKcHVibGljIGNsYXNzIFRlc3QKewogICAgcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQogICAgewogICAgICAgIHN0cmluZyBzID0gImZzZGZzIFtiXWFiY1svYl0gZGRkZnMgW2JdYWJjWy9iXSBmZHNmZHNmcyBbYl1hYmNmc2RmcyI7CiAgICAgICAgc3RyaW5nIHJlc3VsdCA9IFJlZ2V4LlJlcGxhY2UocywgQCJcW2JcXSguKj8pXFsvYlxdIiwgQCI8c3Ryb25nPiQxPC9zdHJvbmc+Iik7CiAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUocmVzdWx0KTsKICAgIH0KfQ==