# -*- coding: utf-8 -*-
import io, sys, os, re, html
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
t=html.unescape(open("_rice11c_epmp_adm.txt",encoding="utf-8").read())
for kw in ["MChE","MCEE","MMSNE","MBE","Applied Bioengineering","Global Medical"]:
    for m in re.finditer(re.escape(kw),t):
        print(f"[{kw}]",re.sub(r'\s+',' ',t[m.start():m.start()+160])); break
