------- You are receiving this mail because: -------
You are on the CC list for the bug.
http://bugs.exim.org/show_bug.cgi?id=623
--- Comment #1 from Philip Hazel <ph10@???> 2007-10-23 18:59:57 ---
On Tue, 23 Oct 2007, Felipe Pena wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug.
>
> http://bugs.exim.org/show_bug.cgi?id=623
> Summary: Negative POSIX named set
> Product: PCRE
> Version: N/A
> Platform: x86
> OS/Version: Linux
> Status: NEW
> Severity: bug
> Priority: medium
> Component: Documentation
> AssignedTo: ph10@???
> ReportedBy: felipensp@???
> CC: pcre-dev@???
>
>
> I don't knew than PCRE supported negative posix named, then found in
> PCRESYNTAX(3): "[[^:xxx:]] negative POSIX named set".
> But, it's don't works.
>
> re> /[[^:digit:]]/
> data> 1a
> No match
>
> And this don't is found in PCREPATTERN(3). Although, in PCRESYNTAX(3) said "The
> full syntax and semantics of the regular expressions that are supported by
> PCRE are described in the pcrepattern documentation. This document contains
> just a quick-reference summary of the syntax."
Thank you for the report. This is a bug in PCRESYNTAX(3). The correct
syntax for negative POSIX classes is, for example:
/[[:^digit:]]/
and this is documented in PCREPATTERN, in the section entitled "POSIX
CHARACTER CLASSES", where it says: "Another Perl extension is negation,
which is indicated by a ^ character after the colon. For example,
[12[:^digit:]]
matches "1", "2", or any non-digit."
Regards,
Philip
--
Configure bugmail:
http://bugs.exim.org/userprefs.cgi?tab=email