regexp for strictly matching the whole word code example Example: regex for entire word /\b(word)\b/i