Replacing string with KEY_REPO_PACKAGES_REGEX.