You could also look at \b in pattern matching. Use \bword\b to patch the word and _nothing_ else...
UPDATE: Chromatic has pointed this one out :)
chromatic says Re:
"Complete match" regexes
has an incorrect
explanation. \b matches
word *boundaries*. A
regex not anchored can still
match other things.