白天的影子

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

直接上代码:

Regex regex = new Regex(strPattern, RegexOptions.IgnoreCase | RegexOptions.Multiline);
    if (regex.IsMatch(htmlContent))
    {
        MatchCollection matchCollection = regex.Matches(htmlContent);
        foreach (Match match in matchCollection)
        {
        }
    }

 

posted on 2020-12-17 07:51  白天的影子  阅读(800)  评论(0编辑  收藏  举报