你这里面除了超链接就没别的了.文字也是<a中的

解决方案 »

  1.   

    什么?其实我是整个的一个页面` 里面还有别的HTML代码 我要去掉类似我发出的那三个的正则
      

  2.   

    <a href=\"#\" onMouseOver=\"toolTip\(\'.*onMouseOut=\"toolTip\(\)\">
      

  3.   

    content = Regex.Replace(content, "正则", "");
    content是我整个页面的HTML代码
      

  4.   

    code=C#] //取innertext
        private string stripHtml(string strHtml)
        {  
           
            string strOutput=System.Text.RegularExpressions.Regex.Replace(strHtml,"<\\/?[^>]+>","") ;        return strOutput;
        }[[/code]
      

  5.   

    这个是去掉所有的HTML代码` 不是我要的  不过还是谢谢帮忙`
      

  6.   


    str = str.Replace(str, @"<a.*?onmouseover=(([^<>""]*)|(""[^""]*""))*>", "",  RegexOptions.IgnoreCase);
      

  7.   

    content = content.Replace("<br>", "");
                content = content.Replace("</a>", "");
                content = Regex.Replace(content,@"<a \/?[^>]+>","");同事帮忙搞出来了`` 汗  正则就是麻烦  结帖去了
      

  8.   

    <a\s*href=""#""\s*onMouseOver=""toolTip\('.*onMouseOut=""toolTip\(\)"">