0
我需要讓我試試這個匹配僅包含西裏爾字母的字符串:預浸匹配():範圍無序
<?php
$pattern="#[x\{0410}-x\{042F}]#u";
$string="АФ";
echo preg_match ($pattern,$string);
?>
但我得到這個錯誤
警告:的preg_match( ):編譯失敗:範圍亂序在字符類在/home/ge0rgi/www/preg.php在偏移10第4行
在x前面嘗試反斜槓...'\ x' – 2011-04-02 18:41:24