public static void Main()
string myString = "This is STRING a222 END, and this is STRING b2838 END.";
for(int i = myString.IndexOf("STRING");i > 0; i = myString.IndexOf("STRING", i+1))
var endIndex = myString.Substring(i + "STARTING".Length).IndexOf("END");
Console.WriteLine(myString.Substring(i + "STARTING".Length-1, endIndex));