#34142 [Opn->Bgs]: Pattern Syntax incorrect
| From: | nlopess@php.net | Date: | Mon, 15 Aug 2005 20:29:46 +0000 |
| Subject: | #34142 [Opn->Bgs]: Pattern Syntax incorrect | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969369621@lists.php.net to get a copy of this message | ||
ID: 34142
Updated by: nlopess@php.net
Reported By: webmaster at trumpetsonline dot nl
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
The pattern is correct. '[^.]' would only match a new-line (\n), thus
making no sense.
Previous Comments:
------------------------------------------------------------------------
[2005-08-15 22:25:07] webmaster at trumpetsonline dot nl
Description:
------------
The PREG_PATTERN_ORDER and the PREG_SET_ORDER examples noted on the
following page:
http://nl3.php.net/manual/nl/function.preg-match-all.php
have a incorrect pattern.
This is the current pattern on this page:
|<[^>]+>(.*)</[^>]+>|U
To get the result you showed on this page the pattern has to be:
|<[^.]+>(.*)</[^>]+>|U
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34142&edit=1