php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69985 Use the same pattern to make differences betw. different delimiters more clear
Submitted: 2015-07-02 23:35 UTC Modified: 2017-01-28 12:59 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: hek2mgl at metashock dot net Assigned:
Status: Open Package: PCRE related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hek2mgl at metashock dot net
New email:
PHP Version: OS:

 

 [2015-07-02 23:35 UTC] hek2mgl at metashock dot net
Description:
------------
---
From manual page: http://www.php.net/regexp.reference.delimiters
---

IMHO it would be more clear to have an example like this:

/foo/
#foo#
+foo+
%foo%

instead of this:

/foo bar/
#^[^0-9]$#
+php+
%[a-zA-Z0-9_-]%

The existing example might be confusing for new users.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 12:59 UTC] cmb@php.net
-Package: Documentation problem +Package: PCRE related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 18:01:29 2024 UTC