php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29621 Typo in manual: reference.pcre.pattern.syntax.php
Submitted: 2004-08-11 21:44 UTC Modified: 2004-08-11 22:17 UTC
From: jkcarter at uiuc dot edu Assigned:
Status: Closed Package: Website problem
PHP Version: 4.3.8 OS:
Private report: No CVE-ID: None
 [2004-08-11 21:44 UTC] jkcarter at uiuc dot edu
Description:
------------
Concerning http://www.php.net/manual/en/reference.pcre.pattern.syntax.php

In the sixth paragraph of the section on Assertions, it is stated:

<code>....while (?<=\d{3}(?!999)...)foo  is another pattern which matches "foo" preceded by three digits and any three characters that are not "999".</code>

I believe the pattern should be (?<=\d{3}(?<!999)...)foo, should it not?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-11 22:17 UTC] dave@php.net
This bug has been fixed in CVS. Since the websites are not directly
updated from the CVS server, the fix might need some time to spread
across the globe to all mirror sites, including PHP.net itself.

Thank you for the report, and for helping us make PHP.net better.

You were right that the < character was missing, but the actual pattern was wrong and I have fixed it. The correct pattern is: (?<=\d{3}...(?<!999))foo

Next time, if there is a problem with the manual, set the category to "Documentation problem" instead of "PHP.net Website problem". Thanks.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Jun 19 00:00:02 2026 UTC