|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-06 16:13 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 21:00:01 2025 UTC |
Description: ------------ !! !! CYR TEXT HERE! (windows-1251) !! UTF-8 word "т"(and some else) != (\w) Reproduce code: --------------- <?php echo preg_replace("/[^\w\d\-]/u" , '', "РїСЂРёРІР?С‚"); echo "<hr />"; echo preg_replace("/[^\w\d\-]/" , '', "РїСЂРёРІР?С‚"); //as result приве[] <- last tag is unknown echo "<hr />"; echo preg_replace("/\w/u" , '#', "РїСЂРёРІР?С‚"); //as result привет != ###### ?> Expected result: ---------------- привет == привет Actual result: -------------- привет != привет