110,539
社区成员
发帖
与我相关
我的任务
分享
var a = Regex.Match(s, "WWW(.*?)MMM").Groups[1].Value;
string str = "WWW@@@ 1 1 ###@@@ 2 2 ###@@@ 3 3 ###MMM";
int i = str.IndexOf("WWW");
int j = str.IndexOf("MMM");
string ss = str.Substring(i + "WWW".Length, j-i- "WWW".Length);
string str = "WWW@@@ 1 1 ###@@@ 2 2 ###@@@ 3 3 ###MMM";
int i = str.IndexOf("WWW");
int j = str.IndexOf("MMM");
string ss = str.Substring(i + 3, j - i - 3);