with open('src/main/resources/templates/doctor.html', 'r', encoding='utf-8') as f: text = f.read() import re match = re.search(r'
(.*?)