You are viewing a single comment's thread. Return to all comments →
import re for _ in range(int(input())): line = input() pattern = re.compile(r'(?<=[\s:])#(?:[a-fA-F0-9]{6}|[a-fA-F0-9]{3})') re.sub(pattern,lambda m: print(m.group()),line)
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 →