Parameterized regexes with compile-time syntax validation