def find_lines(self, linespec):
        """Find lines that match the linespec regex."""
        res = []
        linespec += ".*"
        for line in self.cfg:
            match = re.search(linespec, line)
            if match:
                res.append(match.group(0))
        return res
Find lines that match the linespec regex.