How to filter the lines of a text file which does not match with any of the elements in an array in Ruby : I have a text file with lines of it mostly matching with the elements of an array. How to filter the lines which don't find a match with any of the elements in the given array

Example:
sample text files looks like the following
"Joe is in London
 Sathish in Newyork
 Pandu in Sydney"

Array = [London, Newyork]

How to filter the line "Pandu in Sydney" line from text file
Please note: text file and array are dynamic nature
Ruby Beginner...Please help

Thanks