[pcre-dev] [Bug 1879] New: Unable to create character range …

Kezdőlap
Üzenet törlése
Szerző: admin
Dátum:  
Címzett: pcre-dev
Új témák: [pcre-dev] [Bug 1879] Unable to create character range with certain characters in charclass
Tárgy: [pcre-dev] [Bug 1879] New: Unable to create character range with certain characters in charclass
https://bugs.exim.org/show_bug.cgi?id=1879

            Bug ID: 1879
           Summary: Unable to create character range with certain
                    characters in charclass
           Product: PCRE
           Version: 8.39
          Hardware: x86
                OS: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: firas.dib@???
                CC: pcre-dev@???


If you try to create a character range with a character which is supposed to be
meaningless (plain text) in a charclass you get an error saying its invalid.

Reading from the docs:

       The  sequences  \B,  \N,  \R, and \X are not special inside a character
       class. Like any other unrecognized escape sequences, they  are  treated
       as  the literal characters "B", "N", "R", and "X" by default, but cause
       an error if the PCRE_EXTRA option is set.


For example, [A-\B] gives an error, while [\B] matches the character 'B' fine.
This applies to a bunch of tokens: \G, \K, \X, \N (gives an error saying its
not supported, are docs wrong?), \R, \A, etc.

However, this only seems to occur if the escaped token is on the left hand
side. A range like this works fine: [\A-B]

A range with an otherwise meaningless token outside of a charclass that has
been escaped makes no difference, [A-\Y] works fine.

--
You are receiving this mail because:
You are on the CC list for the bug.