[dmd-beta] D2 2.058 alpha

Jesse Phillips jesse.k.phillips at gmail.com
Wed Feb 8 15:33:57 PST 2012

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)
>      {}

More information about the dmd-beta mailing list