|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-07 23:58 UTC] judas dot iscariote at gmail dot com
[2006-06-08 06:42 UTC] tony2001@php.net
[2006-06-08 11:08 UTC] evgueni at magiaworld dot org dot ru
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 01:00:01 2025 UTC |
Description: ------------ Good night! I have some troubles with letter "Yo" (it's the letter "e" with two points higher) in PCRE function preg_match. I have used the following code to understand, consists a variable $tmp of just letters or no. The script shows that doesn't consists. But it isn't right. Thank you. Eugene Smirnov. Reproduce code: --------------- <?php ... $tmp = "бобёр"; if (preg_match("/^[а-яА-Я]{0,}$/)){ echo "Good"; } else { echo "Bad"; } ... ?> Expected result: ---------------- I want to see the word "Good", because the word "бобёр" consists of letter just. But i see the word "Bad". Actual result: -------------- No comment.