Code:
/\b(?:by|apple|orange)\b/i


Will match the words "by", "apple", or "orange", as they might appear in a sentence (ie. it will match them even if they appear next to punctuation).