正则截取内容

  public string GetSubValue(string str, string s, string e)
        {
            Regex rg = new Regex("(?<=(" + s + "))[.\\s\\S]*?(?=(" + e + "))", RegexOptions.Multiline | RegexOptions.Singleline);
            return rg.Match(str).Value;
        }
原文地址:https://www.cnblogs.com/lidingwen/p/1839327.html