Bug 7111 – New regex engine cannot match beginning of empty string

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2011-12-14T12:36:00Z
Last change time
2012-03-02T14:52:52Z
Assigned to
nobody
Creator
ricochet1k

Comments

Comment #0 by ricochet1k — 2011-12-14T12:36:15Z
import std.regex; void main(){ assert(!match("", regex("^")).empty); } --- Using regex("^", "m") instead works correctly.
Comment #1 by nilsbossung — 2011-12-21T01:39:08Z
Seems to be an issue of ThompsonMatcher. --- assert(!bmatch("", regex("^")).empty); // passes ---
Comment #2 by github-bugzilla — 2012-02-24T22:22:30Z
Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/a5128eba77ac4818a5b67a541b95287a2af079d4 Merge pull request #455 from blackwhale/regex-fixes Fix issue 7111 - New regex engine cannot match beginning of empty string
Comment #3 by nilsbossung — 2012-03-02T14:52:52Z
*** Issue 7626 has been marked as a duplicate of this issue. ***