Hi all.

How to find variable1 that contain words like "apple" or "pear" or "orange" with keywords typea, typeb,typec... And replace it with the text "selected fruit"?

Here is an example:

variable1
typea apple
typeb pear
typeii bee
nonpear
typec orange

find those containing words like "apple" or "pear" or "orange" with keywords typea, typeb,typec... And replace it with the text "selected fruit", and the expected results would be:
variable1
selected fruit
selected fruit
typeii bee
nonpear
selected fruit

Thanks,
David