日期:2014-05-17 浏览次数:20448 次
private string stripHtml(string strHtml)
{
Regex reg = new Regex("<(.
------解决方案--------------------
\n)+?>");
string result = reg.Replace(strHtml, "");
return result;
}
string str = @"[B]sdfsfdsf[B]
[B]sdfsfdsf[B]
";
str = Regex.Replace(str, @"(?i)\[\s*?url=(?:(?![^\[\]]*?vvc\.net\.cn)[^\[\]]*?)\]((?!\[/url\])[\s\S]*?)\[/url\]","$1");
//"[B]sdfsfdsf[B]\r\n[B]sdfsfdsf[B]\r\n