read config.cfg and regex results