# -*- coding: utf-8 -*-
import re,html,io,sys
sys.stdout=io.TextIOWrapper(sys.stdout.buffer,encoding="utf-8")
t=open("_duke_cee_cost.html",encoding="utf-8").read()
txt=re.sub(r"<script.*?</script>","",t,flags=re.S); txt=re.sub(r"<style.*?</style>","",txt,flags=re.S)
txt=html.unescape(re.sub(r"<[^>]+>"," ",txt)); txt=re.sub(r"\s+"," ",txt).strip()
for m in re.finditer(r"Master's Students",txt):
    i=m.start()
    print("@",i,"->",txt[i:i+1200]); print("---")
