def _parse_build_filter(fargs):
    bf = []
    if not fargs:
        return bf
    for f in fargs:
        try:
            attr, rex = f.split(':', 1)
        except Exception as ex:
            raise exception.InvalidFilter(what=f)
        bf.append((attr, rex))
    return bf