code: def end_nodes(self):
          
          for varname, reg in self._nodes_to_regs():
              # If this part goes until the end of the input string.
              if reg[1] == len(self.string):
                  value = self._unescape(varname, self.string[reg[0]: reg[1]])
                  yield MatchVariable(varname, value, (reg[0], reg[1]))
docs: Yields `MatchVariable` instances for all the nodes having their end
          position at the end of the input string.