///
/// 获得字符串中开始和结束字符串中间得值
///
/// 字符串
/// 开始
/// 结束
///
public static string GetStrCenterValue(string str, string s, string e)
{
Regex rg = new Regex("(?<=(" + s + “))[.\s\S]*?(?=(” + e + “))”, RegexOptions.Multiline | RegexOptions.Singleline);
return rg.Match(str).Value;
}
C#获取字符串中开始和结束字符串中间得值
最新推荐文章于 2023-02-11 17:07:01 发布