I have a text. I also have an array of keywords that appear in the that text.
I need to search for those key words and when a match is found:
a - Replace that keyword with the text GAP
b - The keyword that was found will be placed in column E.
The keywords must be in order that they occur in text.
Text
Yesterday, I went to Paul's house because he was ill. His mum was angry with me because I ate all the food in the fridge and I drank all the milk. I drove my car to the supermarket and I bought some bread and cheese and I took it back to the house. Paul's mum was happy when she saw the food.
Words or expressions array
went, was, ate, drank, drove, bought
What I need to generate is
COLUMN D
Yesterday, I GAP to Paul's house because he GAP ill. His mum was angry with me because I GAP etc...
Then those words need to appear in COLUMN E like so:
went
was
ate
drank
drove
bought
Thanks
Bookmarks