Evaluating regular expressions at compile time in D

Is there a way to evaluate regular expressions in D at compile time?

+4
source share
1 answer

Use a statictype variable std.regex.ctRegex.

http://dlang.org/phobos/std_regex.html#ctRegex

+2
source

Source: https://habr.com/ru/post/1538639/


All Articles