Use regexp to process config files