Bug #13016 Updated: what is the output from preg_replace("/a/", '$1','a')
| From: | mathieu@php.net | Date: | Wed, 29 Aug 2001 06:59:50 +0000 |
| Subject: | Bug #13016 Updated: what is the output from preg_replace("/a/", '$1','a') | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64564@lists.php.net to get a copy of this message | ||
ID: 13016
Updated by: mathieu
Reported By: dour@ctc.org.cn
Old Status: Open
Status: Closed
Bug Type: *Regular Expressions
Operating System: FreeBSD 4.3-STABLE
PHP Version: 4.0.6
New Comment:
No, not a bug - you didn't group anything so $1 would be empty.
Please consult a support forum.
Previous Comments:
------------------------------------------------------------------------
[2001-08-29 02:50:00] dour@ctc.org.cn
What is the output from exit(preg_replace("/a/", '$1','a'));
'$1' or ''?
I want it is '$1',but it is '';
BUG?
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13016&edit=1