#25399 [Opn->Bgs]: ereg_replace problem

From: Date: Sat, 06 Sep 2003 23:17:40 +0000
Subject: #25399 [Opn->Bgs]: ereg_replace problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47158@lists.php.net to get a copy of this message
ID: 25399 Updated by: sniper@php.net Reported By: ibar at 163 dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Redhat 7.2 PHP Version: 4.3.3 New Comment: Your regexp is broken. Not bug. (you need to escape | char) Previous Comments: ------------------------------------------------------------------------ [2003-09-06 08:45:36] ibar at 163 dot com Description: ------------ i can't replace the"four" in big5 chinese letter eg:ereg_replace('¥|','4'$str); error instruct:Warning: ereg_replace(): REG_EMPTY in /dir/file.php on line 50 Reproduce code: --------------- $str=ereg_replace('¥|',"4",$str); Expected result: ---------------- return 4 Actual result: -------------- Warning: ereg_replace(): REG_EMPTY in /dir/file.php on line 50 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25399&edit=1

« previous php.bugs (#47158) next »