def re_match_lines(self, lines2):
__tracebackhide__ = True<EOL>self._match_lines(lines2, lambda name, pat: re.match(pat, name), "<STR_LIT>")<EOL>
Search captured text for matching lines using ``re.match``.

        The argument is a list of lines which have to match using ``re.match``.
        If they do not match a pytest.fail() is called.

        The matches and non-matches are also printed on stdout.