Created
November 19, 2015 00:48
-
-
Save ngfw/73e23fa1a9a1ac7c2ff5 to your computer and use it in GitHub Desktop.
Remove Non-Georgian Characters from String
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$string = "სატესტო string"; | |
//echo preg_replace('/[^\p{Georgian}]\d/u', '', $string); // Leaves the Numbers | |
echo preg_replace('/[^\p{Georgian}]/u', '', $string); | |
// output: | |
// სატესტო |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment