using System; using System.Collections.Generic; public class Test { public static void Main() { string text="ABCD,ABCDABCD,ADCDS"; string whatToFind = "BC"; List result = new List(); for(int index=0; index < text.Length; index++) { if(index + whatToFind.Length > text.Length) break; bool matches = true; for(int index2=0; index2