You might for example use
\bt(?:[^\w\s]year)?\b
\b
A word boundary to prevent a partial word matcht
Match literally(?:[^\w\s]year)?
Optionally match a non word character except for a whitespace char\b
A word boundary
CLICK HERE to find out more related problems solutions.