概要 using System.Text.RegularExpressions; public static class StringExtensions { private const RegexOptions OPTIONS = RegexOptions.IgnoreCase; public static string RemoveBBCode( this string self ) { self = Regex.Replace( self, @"\[b\](.*)\[\/b\]" , "$1", OPTIONS ); // 太字 self = Regex.Replace( self, @"\[i\](.*)\[\/i\]" , "$1", OPTIONS ); // 斜体 self = Regex.Replace( self, @"\[u\](.*)\[\/u\]" , "$1",