zoukankan      html  css  js  c++  java
  • 正则表达式替换标签

                   str = System.Text.RegularExpressions.Regex.Replace(str, " <(?!(/?table)|(/?tr)|(/?td))[^ <>]*?>", "", RegexOptions.IgnoreCase);
                    str = System.Text.RegularExpressions.Regex.Replace(str, @" <(\w+)\s*[^ <>]*?>", " <$1>", RegexOptions.IgnoreCase);
                    str = System.Text.RegularExpressions.Regex.Replace(str, "&nbsp", "", RegexOptions.IgnoreCase);

                    System.Xml.XmlDocument dom = new System.Xml.XmlDocument();
                    dom.LoadXml(str);
                    System.Xml.XmlNodeList nl = dom.SelectNodes("//tr");
                    for (int i = 0; i < nl.Count; i++)
                    {
                       
                    }
  • 相关阅读:
    (2/24) 快速上手一个webpack的demo
    (1/24) 认识webpack
    module.exports 、exports、export、export default的区别
    Git同时提交到多个远程仓库
    @codeforces
    @loj
    @bzoj
    @loj
    @bzoj
    @bzoj
  • 原文地址:https://www.cnblogs.com/wanglinglong/p/1557273.html
Copyright © 2011-2022 走看看