php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25399 ereg_replace problem
Submitted: 2003-09-06 08:45 UTC Modified: 2004-11-17 12:31 UTC
From: ibar at 163 dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.3 OS: Redhat 7.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ibar at 163 dot com
New email:
PHP Version: OS:

 

 [2003-09-06 08:45 UTC] 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  

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-06 19:17 UTC] sniper@php.net
Your regexp is broken. Not bug. (you need to escape | char)


 [2004-11-17 12:32 UTC] ibar at 163 dot com
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 13:01:31 2025 UTC