public string Remove(string text, int fromIndex) { int index = finder.GetIndex(text, fromIndex); if (index < 0) { index++; } // if (fromIndex - index == 1) { //// } string result = text.Remove(index, fromIndex - index); return(result); }
public string Remove(string text, int fromIndex) { int index = finder.GetIndex(text, fromIndex); return(text.Remove(fromIndex, index - fromIndex)); }