I\'ve got a long string-variable and want to find out whether it contains one of two substrings.
e.g.
haystack = \'this one is pretty long\' needle1
For an array of substrings to search for I'd recommend
needles = ["whatever", "pretty"] if haystack.match(Regexp.union(needles)) ... end