$text="meeus meeùs";
I am using the following code to find exact substring mee if any.but since above string contains a dutch word so its failing in that case.that is it should replace the word in the $text string only when it matches the full pattern.
$text = preg_replace('/\bmee\b/u', ' ', $text);
Current Output:meeus mee
Desired Output:meeus meeùs