You are viewing a single comment's thread. Return to all comments →
import re N = int(input()) box = [] for i in range(N): s = input() regex_pattern = re.findall(r"<\s*[A-Za-z0-9]+\s*>?", s) for i in regex_pattern: x =i.replace("<","").replace(">","").strip() box.append(x) print(";".join(sorted(list(set(box)))))
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 →
Python 3