'Match the regular expression \'regexp\' on the string representation of
the exception. If it matches then True is returned (so that it is
possible to write \'assert excinfo.match()\'). If it doesn\'t match an
AssertionError is raised.'

def match(self, regexp):

    __tracebackhide__ = True
    if (not re.search(regexp, str(self.value))):
        assert 0, "Pattern    '{0!s}'    not    found    in    '{1!s}'".format(regexp, self.value)
    return True
