http://d.puremagic.com/issues/show_bug.cgi?id=5805
Summary: std.regex match captures property horribly broken Product: D Version: D2 Platform: x86 OS/Version: All Status: NEW Severity: critical Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: dmitry.o...@gmail.com --- Comment #0 from Dmitry Olshansky <dmitry.o...@gmail.com> 2011-04-01 05:57:13 PDT --- void main(){ auto r = regex(`(a)(b)?(c*)`); writeln(r.captures); auto m = "acc".match(r); writeln(m.hit); foreach(c;m.captures) writeln(c); } Output: 3 acc acc a core.exception.RangeError@std.regex(1719): Range violation -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------