Simply put:
echo "xxxxx Tyyy zzzzz" | egrep "\byyy\b"
(no match which is correct)
echo "xxxxx T-yyy zzzzz" | egrep "\byyy\b"
xxxxx T-yyy zzzzz
I dont want it to match like it does in the second expression, please advise how I can achieve this, thanks.