# -*- coding: utf-8 -*-
import io, sys, os, re
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
jobs=[("MChE","Master of Chemical Engineering (MChE) program"),
      ("MCEE","Master of Civil and Environmental Engineering (MCEE), to students"),
      ("MMSNE","Master of Materials Science and NanoEngineering (MMSNE) Degree"),
      ("MBE","Master of Bioengineering (MBE) Degree")]
for tag,anchor in jobs:
    t=open(f"_rice12_{tag}.txt",encoding="utf-8").read()
    i=t.find(anchor)
    print("="*16,tag)
    if i<0: print("anchor not found"); continue
    print(t[i:i+650])
    print()
