Resolving regex issues in config manager.