I need to match a string that contains only Cyrillic letters so I try this:
<?php
$pattern="#[x\{0410}-x\{042F}]#u";
$string="АФ";
echo preg_match ($pattern,$string);
?>
But I get this error
Warning: preg_match(): Compilation failed: range out of order in character class at offset 10 in /home/ge0rgi/www/preg.php on line 4
Returns 1 but doesn’t match F…