php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #34142 Pattern Syntax incorrect
Submitted: 2005-08-15 22:25 UTC Modified: 2005-08-15 22:29 UTC
From: webmaster at trumpetsonline dot nl Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: webmaster at trumpetsonline dot nl
New email:
PHP Version: OS:

 

 [2005-08-15 22:25 UTC] 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-15 22:29 UTC] nlopess@php.net
The pattern is correct. '[^.]' would only match a new-line (\n), thus making no sense.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 02:00:01 2025 UTC