code: def populate_resobj(rexobj, mobj, loc):
      '''
      Popuate the result object and append it to the
      rexobj results.
      '''
      resobj = REXResult(mobj, loc)
      rexobj.matches.append(resobj)
      rexobj.res_count += f populate_resobj(rexobj, mobj, loc):
      '''
      Popuate the result object and append it to the
      rexobj results.
      '''
      resobj = REXResult(mobj, loc)
      rexobj.matches.append(resobj)
      rexobj.res_count += 1
docs: Popuate the result object and append it to the
      rexobj results.