正则截取内容
时间:2010-09-30 来源:黎定文
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;
}
相关阅读 更多 +










