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