fork(2) download
  1. <?php
  2.  
  3. $str = 'کس نے موسیٰ کے بارے میں سنا ہے؟';
  4. $str = preg_replace('/(?<!\w)موسیٰ(?!\w)/u', 'Musa', $str);
  5. $str = preg_replace('/(?<!\w)سنا(?!\w)/u', 'suna', $str);
  6. echo $str;
Success #stdin #stdout 0.01s 82944KB
stdin
Standard input is empty
stdout
کس نے Musa کے بارے میں suna ہے؟