您现在的位置是:首页 >

正则表达式使用实例 C#使用正则表达式去除html标记

火烧 2022-03-03 03:13:39 1068
C#使用正则表达式去除html标记   C#使用正则表达式去除标记:  u i g Sy tem Text RegularEx re io    tri g trHtml = @ am quot   

C#使用正则表达式去除html标记  

正则表达式使用实例 C#使用正则表达式去除html标记

  C#使用正则表达式去除标记:

  using  System Text RegularExpressions;

  string  strHtml  =  @"

  带有HTML标记的字符";

  Regex  regex  =  new  Regex(&quot;< +?>&quot;   RegexOptions IgnoreCase);

  string  str  =  regex Replace(str   &quot;&quot;);

lishixinzhi/Article/program/net/201311/11577  
永远跟党走
  • 如果你觉得本站很棒,可以通过扫码支付打赏哦!

    • 微信收款码
    • 支付宝收款码