string str =  <a href="http://forum.csdn.net/BList/Other/UnClosedList" target="_Blank">扩充话题</a><a href="http://forum.csdn.net/SList/HR/UnClosedList/" target="_Blank">求职与招聘</a>如何使用str.Replace(  )把以上内容替换成
扩充话题 求职与招聘

解决方案 »

  1.   


    string str = @"<ahref=""http://forum.csdn.net/BList/Other/UnClosedList""target=""_Blank"">扩充话题</a><ahref=""http://forum.csdn.net/SList/HR/UnClosedList/""target=""_Blank"">求职与招聘</a>";
    str.Replace(@"<ahref=""http://forum.csdn.net/BList/Other/UnClosedList""target=""_Blank"">扩充话题</a><ahref=""http://forum.csdn.net/SList/HR/UnClosedList/""target=""_Blank"">","");
    str.Replace("</a>","");貌似你都知道是什么了。地址是固定的。
      

  2.   

    地址不是固定的,只是其中包含<a href="http://XX/XX/" target="_Blank" >YYY1</a><a href="XXXX/" target="_Blank" >YYY2</a><a href="XXXX" target="_Blank" >YYY3</a>提取之后YYY1 YYY2 YYY3
      

  3.   

    (?<=<a[^>]*>)[\s\S]*?(?=</a>)