var output = str.replace(/\u104E\u1004\u103A\u1038/g, '\u104E');
$output = preg_replace('/\u104E\u1004\u103A\u1038/g', '\u104E',$str);
output = str.replace(/([\u103B\u103C][\u103D]?[\u103E]?[\u102D\u1036]?)\u1030/g, function($0, $1) { return $1 ? $1 + '\u1034' : $0 + $1; } );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)