def jump_to_match(input_file, regex):
    """Jump to regex match in file.
    @param input_file: File object
    @param regex: Compiled regex object
    @return: True if successful, False otherwise
    """
    for line in input_file:
        if regex.match(line):
            return True
    return False