Replacing word except when it is between letters : <p>For example I would like to change every "hi" to hello
The problem is when I try to do it I get into some kind of problems.
It translates other words badly like:
 from "his dog is nice" to "hellos dog is nice"
How can I fix it
(I am using php)</p>
