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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Matt Peterson <[email protected]> 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: -------