Doc #63650 [Nab]: wrong regex for comments
| From: | salathe@php.net | Date: | Thu, 29 Nov 2012 19:50:10 +0000 |
| Subject: | Doc #63650 [Nab]: wrong regex for comments | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9227@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
Updated by: salathe@php.net
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:
Perhaps you could offer your own addition(s).
https://edit.php.net/?perm=/en/reference.pcre.pattern.syntax.php&project=PHP
Previous Comments:
------------------------------------------------------------------------
[2012-11-29 18:55:37] davidbruchmann at gmail dot com
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.
------------------------------------------------------------------------
[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