I want to extract a list which doesn't contain(not exact match) a word which I have given. Example:
a = ["drop", "drop down", "forum", "drop down forum"]
b = ["drop", "drop down", "forum", "drop down forum", "data"]
Input string is str = "drop"
Output should be like: a = ["forum", "data"]
It is like a "LIKE" query in MySQL but I want to do it using ruby language. Please help to solve this.
a["forum", "data"]? Must arraybbe combined with arrayasomehow?