|
@@ -11527,14 +11527,17 @@ FROM
|
|
|
|
|
|
|
|
|
|
string pattern = $@"{Regex.Escape(tag)}(.*?){Regex.Escape(tag)}";
|
|
string pattern = $@"{Regex.Escape(tag)}(.*?){Regex.Escape(tag)}";
|
|
- MatchCollection matches = Regex.Matches(input, pattern);
|
|
|
|
|
|
|
|
- foreach (System.Text.RegularExpressions.Match match in matches)
|
|
+
|
|
|
|
+ MatchCollection matches = Regex.Matches(input, pattern, RegexOptions.Singleline);
|
|
|
|
+
|
|
|
|
+ string[] strValueArr = new string[1];
|
|
|
|
+ foreach (Match match in matches)
|
|
{
|
|
{
|
|
-
|
|
+ var strValue = match.Groups[1].Value;
|
|
- results.Add(match.Groups[1].Value);
|
|
+ strValueArr = Regex.Split(strValue, @"\r\n|\n");
|
|
}
|
|
}
|
|
-
|
|
+ results.AddRange(strValueArr.Where(x => !string.IsNullOrWhiteSpace(x)));
|
|
return results;
|
|
return results;
|
|
}
|
|
}
|
|
|
|
|