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)
Asked
Active
Viewed 36 times
-2
-
1use word boundaries.. `\bhi\b`.. Apply this regex on preg_replace, – Avinash Raj Jan 13 '16 at 23:19
-
Please post your code so I can give better suggestion! – Sibidharan Jan 13 '16 at 23:20