Better prod and dev regex switching