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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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: Tue Apr 30 17:01:30 2024 UTC