Summary: std.regex: "c.*|d" matches "mm"
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Keywords: wrong-code
          Severity: regression
          Priority: P2
         Component: Phobos

--- Comment #0 from 2011-05-29 10:43:18 PDT ---
Test case:
import std.regex;
void main() {
    auto re = regex("c.*|d");
    auto m = match("mm", re);
    assert(m.empty);          // asserts

The regex does not match as expected on 2.042, but it matches an empty string
on 2.053.

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

Reply via email to