Hey all the following code below works with highlighting the supplied
word to search for but if there are more than just one (1) of that word in the sentence then it wont find it. It just stops at finding one (1) match.
The above code looks like this when ran and supplied the word "world" to find.
But now if I add to the sentence and add another "world" then hit the button this is what it looks like:
As you see, it still has the same highlighted word without also highlighting the second (2) "world".
UPDATE 1
I have attempted using regex in order to loop and find the needed word.
But this does not produce even one word found.