# -*- coding: utf-8 -*-
import sys, io, re
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8", errors="replace")
BASE = r"D:\work buddy\2026-11-05-14-15-52"
for k in ["wlu-cs-mmath-p", "wlu-biostat-mmath-p", "wlu-ds-mmath-p", "wlu-mdsai-p"]:
    s = re.sub(r"\s+", " ", open(BASE + "\\_r348-new-" + k + ".txt", encoding="utf-8").read())
    i = s.find("Contact us ")
    j = s.find("Tuition and fees Visit the graduate program")
    print("\n\n########", k)
    print(s[i+11:j][:3600])
