C# Finding All HTML Tag in string
14 Oct 2018Regex를 사용해서 string안에 HTMLTag 다찾기
string pattern2 = @"(<[^>]*>)";
var allTagList = new List<string>();
var patternMatch = Regex.Matches(inputHTML, pattern2);
for (int i = 0; i < patternMatch.Count; i++)
{
allTagList.Add(patternMatch[i].ToString());
}