I have a text that has this particular repeated multiple times. I want to find the position of all the repeated texts.
The apple is red is what was declared. I declared the apple is red etc
Repeated like 50 times in more than a 100,000 words text
Uses the match regex to match the word
increase = 0
For each match of that word
assign pos = text.IndexOf("+item.ToString+", text.IndexOf("+item.ToString+") + “+increase.ToString+”)
increase = increase + 1
end of loop
However, it isn’t working as expected. Any other suggestions?