/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public static function removeGreekGlyphs ($value:String):String { $value = $value.replace(/[άΆ]/g, "α"); $value = $value.replace(/[ΊΪίÎÏŠ]/g, "ι"); $value = $value.replace(/[όΌ]/g, "ο"); $value = $value.replace(/[ÏŽÎ]/g, "ω"); $value = $value.replace(/[ήΉ]/g, "η"); $value = $value.replace(/[ÏΎΰϋΫ]/g, "Ï…"); $value = $value.replace(/[ÎΈ]/g, "ε"); $value = $value.replace(/[Ï‚]/g, "σ"); return $value; }