Yes that is it. Thank you. You all can decide if this needs
addressing, knowing the reason it seems important to understand the
cost, but a special case might make coding a little easier, if calling
a function in a loop which does a regex.
On Wed, Feb 8, 2012 at 1:53 PM, Rainer Schuetze
> I have not tried, but I guess the trouble comes from rebuilding the regex
> engine for every word. Did you try
>
> auto re = regex(r"\d");
> foreach(w; std.string.split(readText(name)))
> if(!match(w, re).empty)
> {}
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta