I need to know if the given string is in German, Indian or Persian.
Checking for Lating or non-Latin, I simply use [a-zA-Z]
regExp, but I don't know what should I do when I have two non-Latins and a German language.
Do we have any character-range other than [a-zA-Z]
, maybe with code range, if exists at all.
Something like this:
$string = "MyCharactersInGermanlanguage";
$res = preg_match("/[characterRangeOfgermanLanguage]/", $string);
Thanks in advanced.