<?php $s = "क. ಕ. के. ಕೆ. "; echo preg_replace('~\b(?<!\p{M})\p{L}\p{M}*+\.~u', '<pre>$0</pre>', $s);
You have javascript disabled. You will not be able to edit any code.