C#从字符串中批量截取中间字符串
public string[] SubstringMultiple(string source,string startStr, string endStr)
{
Regex rg = new Regex("(?<=(" + startStr + "))[.\\s\\S]*?(?=(" + endStr + "))", RegexOptions.Multiline | RegexOptions.Singleline);
MatchCollection matches = rg.Matches(source);
List<string> resList=new List<string>();
foreach (Match item in matches)
resList.Add(item.Value);
return resList.ToArray();
}