Summary: std.regex - escaped characters can form operators in
                    character classes
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from Nils <> 2011-12-20 04:05:53 PST ---
I think the pattern should be interpreted as CharacterClass('a', Range('-',
'b')), but currently it is interpreted as CharacterClass(Difference('a', 'b')):
string pattern = `[a\--b]`;
assert(match("-", pattern));
assert(match("b", pattern));

This also applies to the other set operators ("||", "&&", "~~").

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to