[Issue 7111] New: New regex engine cannot match beginning of empty string

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 14 12:36:16 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7111

           Summary: New regex engine cannot match beginning of empty
                    string
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: revcompgeek at gmail.com


--- Comment #0 from Matt Peterson <revcompgeek at gmail.com> 2011-12-14 12:36:15 PST ---
import std.regex;

void main(){
    assert(!match("", regex("^")).empty);
}
---
Using regex("^", "m") instead works correctly.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list