def filter_match(result):
    """
    Builtin Callback, remove all output if the string is not found in the
    output
    similar to grep
    :param result:
    """
    if result.out_string().find(result.setting('match')
        ) == -1 and result.err_string().find(result.setting('match')) == -1:
        result.out = ''
        result.err = ''
    return result
