ExpertRefresh

Egrep / Word boundaries  

1) Match the word "cat" in "cat category"







A common problem
A regex that match a word can also match it embedded within a larger word. /cat/ matches twice in "cat category"
Metasequence b
You can use metasequences \b if is supported by your software, like /\b(cat)\b/


References