Last active
December 19, 2015 02:38
-
-
Save jongamble/5884152 to your computer and use it in GitHub Desktop.
An email filter that uses RegEx to check for cyrillic characters
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
function isRussian($val){ | |
$result = preg_match('/[А-Яа-яЁё]/u', $val); | |
return $result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment