www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - non halting regex

Is this program expected to terminate?
D 2.042

module test;

import std.regex;
import std.stdio;

void main(){
     foreach(m; match("hello world",`.*`)){
         writefln("%s[%s]%s",m.pre,m.hit,m.post);
     }
}
Mar 27 2010