Replaced lxml with re.