I need to get the index of a specific character in a string, but I need to know if it occurs twice in that string and if it is so, get the second occurrence index. I tried a few things but couldn't find the solution. Does anyone know how can it be done in .Net? Vb.net if possible.
What I am trying is explained below:
I have string like : 01298461705691703
I need to aquire the index of 17 in this string but if the string has two 17's then I need to know the index of the second one.