I don't quite understand how text.search method works.
For example there is a sentence: Today a red car appeared in the park.
I need to find a red car
sequence and highlight it. It is found but here is how my highlighting looks like:
I am using self.text.search(word, start, stopindex=END)
on the sentence. And it looks like search method works exactly like python's regexp search. Adding exact=True
didn't change anything since it is default behavior which is why I don't understand what exact=True actually means.
How to make a red car
highlighted correctly?