Search for colors

Posted on

Problem :

I’m looking for a way to find all CSS colors (HEX) in a directory recursively, I don’t know the colors i’ll be looking for so I want a way using notepad++ or any linux command to find strings that start with a “#” and then followed by 6 characters just like the CSS hex codes i.e: #111111

Solution :

In case anyone wants this, you can use this regex:

#([a-fA-F0-9]{6})

Leave a Reply

Your email address will not be published. Required fields are marked *