def extract_references_list_by_keyword(text, keyword):
    print(text)
    match_res = re.search(keyword, text)
    ref_text = text[match_res.span()[0]:]
    index_re = re.compile('\\[[0-9]([0-9]|)([0-9]|)\\]')
    ref_pos = []
    for ref in index_re.finditer(ref_text):
        ref_pos.append(ref.span()[0])
    ref_pos.append(len(ref_text))
    for i in range((len(ref_pos) - 1)):
        print(((CYELLOW + ref_text[ref_pos[i]:ref_pos[(i + 1)]]) + CEND))
def extract_references_list_by_keyword(text, keyword):
    print(text)
    match_res = re.search(keyword, text)
    ref_text = text[match_res.span()[0]:]
    index_re = re.compile('\\[[0-9]([0-9]|)([0-9]|)\\]')
    ref_pos = []
    for ref in index_re.finditer(ref_text):
        ref_pos.append(ref.span()[0])
    ref_pos.append(len(ref_text))
    for i in range((len(ref_pos) - 1)):
        print(((CYELLOW + ref_text[ref_pos[i]:ref_pos[(i + 1)]]) + CEND))