截取字符串的问题     希望高手们能帮我解决
protected string RemoveStr(string str)
         {
             string pattern = @"<[\s\S]*?>";
             Regex regex = new Regex(pattern);
             str = regex.Replace(str, "");
             if (str.Length > 500) { return str.Remove(380) + "..."; } else { return str; }
         }
这个  现在能过滤掉图片    但是不想过滤掉  换行的字符  也就是  数据库里的换行 不过滤掉     怎么弄 高手们 帮帮忙
------解决方案--------------------
C# code
protected string RemoveStr(string str)
  {
  string pattern = @"<(?!br\\b).*?>";
  Regex regex = new Regex(pattern);
  str = regex.Replace(str, "").Replace("\n","<br/>");
  return str.Length > 500?str.Remove(380) + "...":str; 
  }