August 11, 2013 [Issue 10799] New: std.regex: ctRegex lookahead support | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10799 Summary: std.regex: ctRegex lookahead support Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: dmitry.olsh@gmail.com --- Comment #0 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2013-08-11 13:20:30 PDT --- Yet another unimplemted corner of ctRegex. Some test cases, basically the same full unrestricted lookahead must be supported. import std.algorithm, std.regex; void main() { auto c1 = ctRegex!("a(?=bc)b"); assert("abc".match(c1).equal!equal([["ab"]])); assert("ab".match(c1).empty); auto c2 = ctRegex!("a(?![a-z]*!)b"); assert("ab".match(c2).equal!equal([["ab"]])); assert("ab!".match(c2).empty); assert("abcd!".match(c2).empty); assert("abcd5!".match(c2).equal!equal([["ab"]])); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 11, 2013 [Issue 10799] std.regex: ctRegex lookahead support | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dmitry Olshansky | http://d.puremagic.com/issues/show_bug.cgi?id=10799 Dmitry Olshansky <dmitry.olsh@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2013-08-11 13:20:59 PDT --- Fixed: https://github.com/D-Programming-Language/phobos/pull/1465 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation