直接上代碼:
Regex regex = new Regex(strPattern, RegexOptions.IgnoreCase | RegexOptions.Multiline); if (regex.IsMatch(htmlContent)) { MatchCollection matchCollection = regex.Matches(htmlContent); foreach (Match match in matchCollection) { } }
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/236296.html
標籤:.NET技术
