Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在编译时评估 D 中的正则表达式?
使用static类型的变量std.regex.ctRegex。
static
std.regex.ctRegex
http://dlang.org/phobos/std_regex.html#ctRegex