changing generation of precompiled regex