|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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? PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Jun 19 02:00:01 2026 UTC |
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.