[pcre-dev] [Bug 1123] New: \g in a char class, POSIX validat…

Top Page
Delete this message
Author: John Tattarakis
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1123] New: \g in a char class, POSIX validation, \N and quantifiers
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1123
           Summary: \g in a char class, POSIX validation, \N and quantifiers
           Product: PCRE
           Version: 8.12
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: tattarakis@???
                CC: pcre-dev@???



A few miscellaneous bugs discovered using PCRE 8.12:

1. \g is currently being validated within a character class, even though it
matches a literal 'g' and thus requires no such validation:

[\g<a>] matches 'g' or '<' or 'a' or '>'
[\ga] causes a compile error

2. A character class such as [:abc:] fails to compile, presumably to alert the
user that they may have wanted to use the POSIX character set [[:abc:]].
However, the check for this is a little too simple:

[a[:punct:]] matches 'a' or a punctuation character.
[:a[:punct:]] causes a compile error.

3. I can't seem to be able to use {} quantifiers with \N:

\N+ matches one or more new line characters
\N{1,} causes a compile error.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email