http://d.puremagic.com/issues/show_bug.cgi?id=5674
Summary: AssertError in std.regex Product: D Version: D2 Platform: Other OS/Version: Mac OS X Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: d...@me.com --- Comment #0 from Jacob Carlborg <d...@me.com> 2011-03-01 08:14:43 PST --- The following code results in an AssertError or RangeError (don't know if the RangeError is expected behavior) : import std.regex; import std.stdio; void main () { auto m = "abc".match(`a(\w)b`); writeln(m.hit); // AssertError in regex.d:1795 writeln(m.captures); // RangeError in regex.d:1719 } Can't "hit" just return an empty string and "captures" an empty range? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------