#33896 [Opn->Bgs]: limited replacement parameter on ereg_replace function
| From: | sniper@php.net | Date: | Thu, 28 Jul 2005 08:06:58 +0000 |
| Subject: | #33896 [Opn->Bgs]: limited replacement parameter on ereg_replace function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82571@lists.php.net to get a copy of this message | ||
ID: 33896
Updated by: sniper@php.net
Reported By: wfernandom2004 at yahoo dot com dot br
-Status: Open
+Status: Bogus
Bug Type: Regexps related
Operating System: Linux, Ubuntu
PHP Version: 4.4.0
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2005-07-28 00:39:48] wfernandom2004 at yahoo dot com dot br
Description:
------------
It is impossible put in the replacement parameter, on ereg_replace
function, one literal text of this format: \digit, e.g, \1, because the
substrings replacements have preference.
It, for me, is interesting when preparing string substituitions
previously, with the ereg_replace function.
Reproduce code:
---------------
echo ereg_replace("a", "\\\\0", "bbabb");
Expected result:
----------------
bb\0bb
Actual result:
--------------
bbabb
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33896&edit=1