|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12761 ereg and preg problems
Submitted: 2001-08-15 06:50 UTC Modified: 2001-08-15 07:05 UTC
From: zeen at zeen dot co dot uk Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.0.6 OS: win me/freebsd
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
18 + 22 = ?
Subscribe to this entry?

 [2001-08-15 06:50 UTC] zeen at zeen dot co dot uk
$data = eregi_replace("(.*)", prodwebsearch('\\1'), "$data");

function prodwebsearch($search) { 
# here search is fine
# search = ultra 5
return prodsearch($search); 

function prodsearch($search) { 
#here its not
# search = \1
return $search;

(this is just an example)

why does $search change to \1?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-15 07:05 UTC]
This is no bug (As discussed on #Php).

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Sep 25 22:01:24 2023 UTC