string s = “1234abc123444555efcdeeee”;
    int i = s.IndexOf(“abc”);
    int j = s.IndexOf(“ef”);
    string str = s.Substring(i, j - i);