https://issues.dlang.org/show_bug.cgi?id=15489
oddp <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |[email protected] Resolution|WORKSFORME |--- --- Comment #9 from oddp <[email protected]> --- This backreference issue isn't fixed entirely: void main () { import std.regex, std.stdio; auto r = r"(..).*\1"; foreach (s; ["abab", "abcab", "xababx", "xabcabx"]) writefln("%s %s %s %s", s, s.matchFirst(r), s.match(r), s.bmatch(r)); // abab ["abab", "ab"] [["abab", "ab"]] [["abab", "ab"]] // abcab ["abcab", "ab"] [["abcab", "ab"]] [["abcab", "ab"]] // xababx ["abab", "ab"] [["abab", "ab"]] [["abab", "ab"]] // xabcabx [] [] [] } Here are a handful ids that std.regex fails to match: vrnyrnbfcx jrqrkgdrqm meflbefata svdyayyedy cwdpoivoie Another hundred on the playground: https://run.dlang.io/is/O8slu9 // 100 out of 100 failed. --
