You are viewing a single comment's thread. Return to all comments →
import re pattern = r"(?<=[\:\, ])+[#]+([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})" for _ in range(int(input())): line = input() res = re.findall(pattern, line) if res: [print("#"+i) for i in res] else: pass
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 →