code: def absolute_charindex(self, string, start, end):
          
          search = string[start:end]
          abs_start = self.refstring.index(search)
          return abs_start, (end - start) + abs_start
docs: Finds the absolute character index of the specified regex match
          start and end indices in the *buffer* refstring.