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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 25 13:01:30 2024 UTC