How to detect desired collection of words scattered in multiple lines

@Anil_G see three separate lines means that they are different strings. Your solution is way when the entire thing is a string.