import re with open('src/index.html', 'r', encoding='utf-8') as f: html = f.read() matches = re.findall(r'