ID: 45035
User updated by: kamarton at gmail dot com
-Summary: Reg exp. '/\w/u' not include ő, ű, Ő
and Ű utf characters
Reported By: kamarton at gmail dot com
Status: Open
Bug Type: Unicode Engine related
Operating System: Win XP
PHP Version: 5.2.6
New Comment:
Reproduce code:
---------------
echo
preg_replace('/\w/u','_','öüóőúéáűíÖÜÓŐÚÉÁŰÍ');
Expected result:
----------------
echo -> '__________________'
Actual result:
--------------
echo -> '___ő___ű____Ő___Ű_'
Previous Comments:
------------------------------------------------------------------------
[2008-05-18 18:52:42] kamarton at gmail dot com
Description:
------------
The regular expression engine with 'u' modifiers '\w' class not include
few hungarian characters.
Not include: ő, ű, Ő and Ű.
PHP source file coding in utf8 with BOM.
Sorry my english.
Regards,
Marton
System:
WinXP, SP2
PHP 5.2.5 (xampp version)
(source editor: Notepad++ v4.9.2.)
Reproduce code:
---------------
echo
preg_replace('/\w/u','_','öüóőúéáűíÖÜÓŐÚÉÁŰÍ');
Expected result:
----------------
echo -> '__________________'
Actual result:
--------------
echo -> '___ő___ű____Ő___Ű_'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45035&edit=1