• [deleted]Challenge Author
    + 0 comments
    import re
    for _ in range(int(input())):
        s = input()
        if re.search(r'^\s.*(#[\da-fA-F]{3,6})', s):
            print(*re.findall(r'#[\da-fA-F]{3,6}', s), sep='\n')