def match(self, regexp):
__tracebackhide__ = True<EOL>if not re.search(regexp, str(self.value)):<EOL><INDENT>assert <NUM_LIT:0>, "<STR_LIT>".format(regexp, self.value)<EOL><DEDENT>return True<EOL>
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.