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
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

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-2019 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 14:01:28 2019 UTC