import re
with open('index_main.html','r',encoding='utf-8') as f:
    html = f.read()
for s in ['ut','ubc','mcg','uw']:
    ids = re.findall(r'\{id:"(' + s + r'[^"]*chem[^"]*?)"', html, re.IGNORECASE)
    print(s, ids)
