[Issue 6076] New: std.regex: "c.*|d" matches "mm"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 29 10:47:39 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6076
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
AssignedTo: nobody at puremagic.com
ReportedBy: kennytm at gmail.com
--- Comment #0 from kennytm at gmail.com 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list