Hi,
I have a method which needs to iterate through a string, at the moment looking for 2 characters, but will be more. I use this code to do the looping and looking.
int i = 0;
while ((i = name.IndexOf('\'', i)) != -1)
{
name =
name.Substring(0, i).TrimEnd() +
name.Substring(i, 1) + ...
Go to the complete details ...