docs: def match(self, chars):
          """Return all next characters that are listed in `chars` as a string"""
          start_index = self.next_index
          for char in self:
              if char not in chars:
                  self.next_index -= 1
                  break
          return self[start_index:self.next_index]