digitalmars.D.learn - non halting regex
- Ellery Newcomer (10/10) Mar 27 2010 Is this program expected to terminate?
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