I have the following array:
arr = ["lol","test"]
and a code:
matches = content.downcase.split & arr
where content is a string. This code returns ["lol"] when content = "Something lol", but fails to return anything when content = "Something #lol." with a comma or hashtag etc. It always fails when there is no exact match.
I'd like to match with the strings in the array as substring. How can this be done by adapting the above code?

arrmatch "Something xlolx"?