Regular Expressions 101

Library entries

Regex to Match Valid Hex Color Values in CSS

Vote

1

Regular Expression
python

"
[\w :,]+(#(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6}))\b
"
g

Description

Loading markdown...
Submitted by Prayash Mohapatra - 5 years ago