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
To check if contains at least one of two substrings:
haystack[/whatever|pretty/]
Returns first result found