• + 0 comments
    1. import re
    2. def check(x):
    3. matches = re.findall(r"#(?:[a-fA-f0-9]{3}|[a-fA-f0-9]{6})(?=[;|,|)])",x)
    4. if matches:
    5. print('\n'.join(matches))