You are viewing a single comment's thread. Return to all comments →
import re N = int(input()) hex_code = r'#[0-9A-Fa-f]{3,6}(?=[^\w-])' css_colors = [] for _ in range(N): line = input() css_colors.extend(re.findall(hex_code, line)) print('\n'.join(css_colors))
Seems like cookies are disabled on this browser, please enable them to open this website
Hex Color Code
You are viewing a single comment's thread. Return to all comments →