using System.Collections.Generic;
namespace BlankfactorEnterTest
static void Main(string[] args)
string inputString = "sdfgabcwetrrytruyrtuabcpotre!@#abcprtort";
var resultList = new List<Dictionary<string, string>>();
resultList.Add(Program.processString(inputString, "abc"));
resultList.Add(Program.processString(inputString, "s"));
resultList.Add(Program.processString(inputString, "r"));
resultList.Add(Program.processString(inputString, "zi"));
foreach (var resultDictionary in resultList)
foreach (var result in resultDictionary)
var separator = result.Value;
index = text.IndexOf(separator);
if (counter == 0 && index > 0)
var prefix = text.Substring(index);
public static Dictionary<string, string> processString(String inputStr, String separator)
Dictionary<string, string> result = new Dictionary<string, string>();