I have a string, an array of words to be searched for:
strng = "I have been working here since last six months"
text = ["since", "till", "until"]
result = "since"
I want to search for every word in array, in strng
and when any of it is found in the strng, it must be assigned to result. how to do it?
I am using .search()
for searching a single word, but how to search for multiple words? please help.
I am a Newbie.