Doc #63650 [Com]: wrong regex for comments
| From: | davidbruchmann at gmail dot com | Date: | Thu, 29 Nov 2012 18:55:37 +0000 |
| Subject: | Doc #63650 [Com]: wrong regex for comments | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9226@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63650&edit=1
ID: 63650
Comment by: davidbruchmann at gmail dot com
Reported by: davidbruchmann at gmail dot com
Summary: wrong regex for comments
Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
right and it isn't 100% clear what is meant.
Additionally I thought comments of a file could be filtered with that expression,
fact is that it doesn't work like that and the expression is for some other
purpose, so the whole explanation isn't clear even if the closing parenthesis
would be added. An example would be nice.
Previous Comments:
------------------------------------------------------------------------
[2012-11-29 18:27:48] salathe@php.net
The full sentence reads, "The sequence (?# marks the start of a comment which
continues up to the next closing parenthesis."
------------------------------------------------------------------------
[2012-11-29 14:53:02] davidbruchmann at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/regexp.reference.comments
---
its said:
"The sequence (?# marks ..."
Thats wrong cause the sequence / expression has to be closed.
Correct is:
"The sequence (?#) marks ..."
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63650&edit=1