def _check_substituted_domains(patchset, search_regex):
    """Returns True if the patchset contains substituted domains; False otherwise"""
    for patchedfile in patchset:
        for hunk in patchedfile:
            if not search_regex.search(str(hunk)) is None:
                return True
    return False