re

Allows specifying regular expression patterns in expressions, without having to compile them each time.

Regex!char
re
(
string pattern
alias flags = []
)
()

Examples

if (text.match(^\d+$)) {} // old code - recompiles every time if (text.match(re!^\d+$)) {} // new code - recompiles once

Meta