例如
<!--StartFragment-->
阿斯顿机房空间撒地方看了就阿斯顿浪费空间撒地方
阿斯顿福建路口萨芬的就是辣的f 
asdf撒旦法撒旦法
asdfsdaf发

<!--EndFragment-->求中间的
阿斯顿机房空间撒地方看了就阿斯顿浪费空间撒地方
阿斯顿福建路口萨芬的就是辣的f 
asdf撒旦法撒旦法
asdfsdaf发

解决方案 »

  1.   

    @"(?<=>)[^<]*?(?=<)"你看可照?
      

  2.   

    string tempStr = File.ReadAllText(@"C:\Documents and Settings\Administrator\桌面\Test.txt", Encoding.GetEncoding("GB2312"));
                tempStr = Regex.Replace(tempStr,@"<[^>]*>","");
      

  3.   


    Version:0.9
    StartHTML:0000000194
    EndHTML:0000001989
    StartFragment:0000000232
    EndFragment:0000001951
    SourceURL:http://topic.csdn.net/u/20111114/11/8082a5c3-1bb9-47b3-aac3-f2caabf9398b.html
    <html>
    <body>
    <!--StartFragment-->
    <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Simsun; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: simsun; font-size: 14px; line-height: 23px; text-align: left; "><div><fieldset style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(202, 217, 234); border-right-color: rgb(202, 217, 234); border-bottom-color: rgb(202, 217, 234); border-left-color: rgb(202, 217, 234); font: normal normal normal 12px/19px simsun; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; width: 620px; overflow-x: hidden; word-break: break-all; "><legend style="font: normal normal bold 12px/normal simsun; color: rgb(102, 102, 102); ">引用 3 楼 return_false 的回复:</legend><br>C# code<br>string tempStr = File.ReadAllText(@"C:\Documents and Settings\Administrator\桌面\Test.txt", Encoding.GetEncoding("GB2312"));<br>tempStr = Regex.Replace(tempStr,@"&lt;[^&gt;]*&gt;","");<br></fieldset></div><br>正则,又见你。学习下。</span></span>
    <!--EndFragment-->
    </body>
    </html>内容是这个