You are viewing a single comment's thread. Return to all comments →
import re hex_regex = re.compile(r'(?<!^)(#([\da-f]{3}){1,2})', flags=re.I) for _ in range(int(input())): if vals := hex_regex.findall(input()): for match in vals: print(match[0])
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 →