do not hold regex memory after config