#49048 [Opn->Bgs]: Failed preg_match for unicode

From: Date: Fri, 24 Jul 2009 13:37:14 +0000
Subject: #49048 [Opn->Bgs]: Failed preg_match for unicode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-140199@lists.php.net to get a copy of this message
ID: 49048 Updated by: derick@php.net Reported By: samva at ukr dot net -Status: Open +Status: Bogus Bug Type: *Regular Expressions Operating System: ASPLinux PHP Version: 5.2.10 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php This only works for Unicode characters in "u" mode (just adding the "u" specifier should make it work) Previous Comments: ------------------------------------------------------------------------ [2009-07-24 13:26:15] samva at ukr dot net Description: ------------ Failed preg_match Reproduce code: --------------- --- From manual page: regexp.reference.unicode --- $value = 'способ'; $reg = '/(^[\pL]+$)/i'; echo (preg_match ($reg,$value)) ? 'SUCCESS' : 'FAILED'; Expected result: ---------------- SUCCESS Actual result: -------------- FAILED ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49048&edit=1

« previous php.bugs (#140199) next »