Regex in ctfe?

Manu via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 25 17:34:09 PST 2016


Possible to std.regex in ctfe?
I kinda had it in my mind that ctRegex was ctfe-able, but it seems
it's not. It just generates an efficient regex engine at compile time
which only actually works on data at runtime.

I have a string import destined for a mixin, and I want to parse it
with regex, but I haven't been able to make it work. The docs mention
nothing about this possibility.


More information about the Digitalmars-d mailing list