#25399 [Bgs]: ereg_replace problem

From: Date: Wed, 17 Nov 2004 11:32:28 +0000
Subject: #25399 [Bgs]: ereg_replace problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69169@lists.php.net to get a copy of this message
ID: 25399 User updated by: ibar at 163 dot com Reported By: ibar at 163 dot com Status: Bogus Bug Type: Scripting Engine problem Operating System: Redhat 7.2 PHP Version: 4.3.3 New Comment: Excuse me, the answer from you refered the word "regexp", but I cann't catch its exact meaning, can you give me an detailed explaination? Thanks a lot. Previous Comments: ------------------------------------------------------------------------ [2003-09-06 19:17:40] sniper@php.net Your regexp is broken. Not bug. (you need to escape | char) ------------------------------------------------------------------------ [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 (#69169) next »