import re


def _except(txt, pattern):
    """
    Show only text that does not match a pattern.
    """
    rgx = "^.*({pattern}).*$".format(pattern=pattern)
    unmatched = [
        line for line in txt.splitlines() if not re.search(rgx, line, re.I)
    ]
    return "\n".join(unmatched)