php olmayan latin karakterler kelime sınır

0 Cevap php

Bu örnek çalışıyor:

echo preg_replace("/\bI\b/u", 'we', "I can"); // we can

Bu bir ben "u" değiştirici kullanmak bile çalışmıyor rusça harfler kullanıldığında edildi:

echo preg_replace("/\bЯ\b/u", 'мы', 'Я могу'); // still "Я могу"

So the question is what should I do to fix this?
Thanks.

0 Cevap