I've tried to replace a word with a word boundary but not working when anyone word begins to utf-8 character. This is my code;
var text="Su çsu su çsuö suö";
var word="su";
var regex=new RegExp("\\b"+word+"\\b", "gi");
text=text.replace(regex,"<span style='color:red;'>"+word+"</span>");
console.log(text);
/* çsuö */
and all "su" change this one; çsuö