Possible Duplicate:
Regex to match words
Way to have String.Replace only hit “whole words”
I need do a simple regex.replace() on text with complete words.
Example: pattern to find: "kiss" word replace: "metallica"
text 1: Kiss is the rock band. Metallica is the rock band. (OK)
text 2: The boy kissed the girl. The boy metallicaed the girl. (ERROR)
I need find the exactly the same word, maybe verifying the white space before and after the word... I don't know :(
I think this is easy to do but I'm not finding the solution.
Thanks for the help.