\b allows you to perform a "whole words only" search using a regular expression in the form of \bword\b. Example - will match all lines which contains whole word host:
grep -r '\bhost\b' /etc/