From: Jens Wille Date: 2008-04-30T23:25:39+09:00 Subject: Re: Search string for occurneces of words stored in array ok, i withdraw my post. david's just quicker... ;-) Jens Wille [2008-04-30 16:18]: > sentence =~ Regexp.union(*words) one addition regarding the regexp, though. in case words may contain special characters, it's safer to escape them first: sentence =~ Regexp.union(*words.map { |word| Regexp.escape(word) }) cheers jens