php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13016 what is the output from preg_replace("/a/", '$1','a')
Submitted: 2001-08-29 02:50 UTC Modified: 2001-08-29 02:59 UTC
From: dour at ctc dot org dot cn Assigned:
Status: Closed Package: *Regular Expressions
PHP Version: 4.0.6 OS: FreeBSD 4.3-STABLE
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:
MUST BE VALID
Solve the problem:
34 + 34 = ?
Subscribe to this entry?

 
 [2001-08-29 02:50 UTC] dour at ctc dot org dot cn
What is the output from exit(preg_replace("/a/", '$1','a'));
'$1' or ''?
I want it is '$1',but it is '';
BUG?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-29 02:59 UTC] mathieu@php.net
No, not a bug - you didn't group anything so $1 would be empty.
Please consult a support forum.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 19:01:28 2024 UTC