• + 0 comments
    1. `python
    2. import re
      1. def check(x):
    3. matches = re.findall(r"#(?:[a-fA-f0-9]{3}|[a-fA-f0-9]{6})(?=[;|,|)])",x)
    4. if matches:
    5. for i in range(len(matches)):
    6. print(matches[i])
    7. for i in range(int(input())):
    8. x = input()
    9. check(x)
    10. 14.