code: def _match(self, regex):
          
          cregex = re.compile(regex)
          for line in self.content.splitlines():
              match = cregex.match(line)
              if match:
                  return match
          raise Exception('No "{0}" line in {1}.cpp'.format(
              regex_to_error_msg(regex),
              self.name
          ))
docs: Find the first line matching regex and return the match object