docs: def next(self, match, predicate=None, index=None):
          """
          Retrieves the nearest next matches.
          :param match:
          :type match:
          :param predicate:
          :type predicate:
          :param index:
          :type index: int
          :return:
          :rtype:
          """
          current = match.start + 1
          while current <= self._max_end:
              next_matches = self.starting(current)
              if next_matches:
                  return filter_index(next_matches, predicate, index)
              current += 1
          return filter_index(_BaseMatches._base(), predicate, index)