Summary: std.regex : breaks with empy string regex
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from Bruno Medeiros <> 2010-08-03 
08:13:17 PDT ---
import std.regex; 

void main() {

    foreach(m; match("abcabcabab", regex(""))) {
        writefln("%s[%s]%s", m.pre, m.hit,;


core.exception.rangeer...@std.regex(1848): Range violation

The empty string is a perfectly valid regex. (which, IIRC, should match an
input string named src (src.length+1) times)

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to