4

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

menjaraz
  • 7,551
  • 4
  • 41
  • 81
Jeroen
  • 15,257
  • 12
  • 59
  • 102

1 Answers1

2

Use a static variable of type std.regex.ctRegex.

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

Adam D. Ruppe
  • 25,382
  • 4
  • 41
  • 60