Is std.regex.match completely broken?

Jacob Carlborg doob at me.com
Mon Feb 28 11:37:24 PST 2011


The following code will result in an AssertError or RangeError when run.

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
}

Should I report this as a bug?

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list