php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #31077 Typo on preg_replace documentation
Submitted: 2004-12-14 02:22 UTC Modified: 2004-12-14 19:35 UTC
From: n0dalus at gmail dot com Assigned: sean (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
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:
44 - 23 = ?
Subscribe to this entry?

 
 [2004-12-14 02:22 UTC] n0dalus at gmail dot com
Description:
------------
On http://www.php.net/manual/en/function.preg-replace.php#AEN113427
Example 4. Using /e modifier title should be changed, since / is just a delimiter and could be any other valid character.
A more appropriate title would be:
Example 4. Using PREG e modifier

Reproduce code:
---------------
N/A

Expected result:
----------------
N/A

Actual result:
--------------
N/A

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-14 09:00 UTC] vrana@php.net
Thanks for the note, but it's a habit to mark modifiers with a slash from languages where / directly denotes the edge of a regexp (like JavaScript).
 [2004-12-14 18:51 UTC] sean@php.net
I think this bug has merit.
#e, @e and !e are all equivalent to /e in regex-speak, so it should just be "Using the 'e' modifier".

I'll fix it in a bit.

S

 [2004-12-14 19:35 UTC] sean@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 26 14:01:32 2024 UTC