I explain, there is a certain list of lines
List<string>Separator = new List<string>(); Separator.Add("0000"); Separator.Add("1111"); Separator.Add("2222"); Separator.Add("3333"); And there is a string - _String. in it you need to find all the sequences from the list. Separator wrote such code
foreach (string str in Separator) { int i = 0; for (; i != -1;) { i = _String.IndexOf(str, i + 4); if (i != -1) SeparatorInt.Add(i); } } The program finds all the sequences except the one that will be at the very beginning (start in the first four characters of _String). Tell me how to change the code, so that the program would look in the first four characters?
int i = 0;int i = -4;. - Dmitry D.