字符串的截取(从指定位置)
string s = "1234abc123444555efcdeeee";
int i = s.IndexOf("abc")+1;
int j = s.IndexOf("ef");
string str = s.Substring(i, j - i+2);
str结果为:abc123444555ef,
未经同意谢绝转载,如需转载,请联系博主
string s = "1234abc123444555efcdeeee";
int i = s.IndexOf("abc")+1;
int j = s.IndexOf("ef");
string str = s.Substring(i, j - i+2);
str结果为:abc123444555ef,