public string SubstringSingle(string source
, string startStr
, string endStr
)
{
Regex rg
= new Regex("(?<=(" + startStr
+ "))[.\\s\\S]*?(?=(" + endStr
+ "))", RegexOptions
.Multiline
| RegexOptions
.Singleline
);
return rg
.Match(source
).Value
;
}
转载请注明原文地址: https://lol.8miu.com/read-27623.html