php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #43355 [PCRE] descriptions for new escape sequences are missing
Submitted: 2007-11-21 03:05 UTC Modified: 2007-11-21 11:31 UTC
From: carsten_sttgt at gmx dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: carsten_sttgt at gmx dot de
New email:
PHP Version: OS:

 

 [2007-11-21 03:05 UTC] carsten_sttgt at gmx dot de
Description:
------------
Since PHP 5.2.4, the PCRE library bundled with PHP, knows the escape sequences \h, \H, \v, \V, \k and \K.

Please add also a note, that this new features can break existing scripts.

Regards,
Carsten


Reproduce code:
---------------
http://de.php.net/manual/en/reference.pcre.pattern.syntax.php

Expected result:
----------------
\h, \H, \v, and \V match horizontal and vertical whitespace.

\k{name} is synonymous with \k<name> and \k'name'

\K resets the start of the current match so that everything before is not part of it.


Actual result:
--------------
The \v escape that was in the Perl documentation for a long time was never in fact recognized.

(nothing about \h, \H, \V, \k and \K)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-21 11:31 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 16 22:01:31 2024 UTC