code: def reffinder(sectionObj):
      
      text = sectionObj['text']
      reftags = [x for x in refTagRegEx.finditer(text)]
      if reftags:
          references = []
          for tag in reftags:
              references.append(int(tag.group(1)))
  
          sectionObj['references'] = references
  
          text = refTagRegEx.sub('', text)
          sectionObj['text'] = text
  
      return sectionObj
docs: add reference indeces to sectionobj['references']
      :param sectionObj
      :return: a section obj w references: field