code: def strip_footer(ref_lines, section_title):
      
      pattern = ur'\(?\[?\d{0,4}\]?\)?\.?\s*%s\s*$' % re.escape(section_title)
      re_footer = re.compile(pattern, re.UNICODE)
      return [l for l in ref_lines if not re_footer.match(l)]
docs: Remove footer title from references lines