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
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
50 - 25 = ?
Subscribe to this entry?

 
 [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: Wed Apr 24 22:01:30 2024 UTC