You are viewing a single comment's thread. Return to all comments →
For Python 3:
import re tag_pattern = re.compile(r'<\s*(?!/|!)([A-Za-z][\w\-]*)',re.ASCII) number_of_lines = int(input()) unique_tag_names = set() for _ in range(number_of_lines): html_line = input() unique_tag_names.update(tag_pattern.findall(html_line)) print(";".join(sorted(unique_tag_names)))
Seems like cookies are disabled on this browser, please enable them to open this website
Detect HTML Tags
You are viewing a single comment's thread. Return to all comments →
For Python 3: