I have this string:
myString = "Tomorrow will be very very rainy"
I would like to get the start index of the word number 5 (very).
What I do currently, I do split myString into words:
words = re.findall( r'\w+|[^\s\w]+', myString)
But I am not sure on how to get the start index of the word number 5: words[5].
Using the index() is not working as it finds the first occurrence:
start_index = myString.index(words[5])