Convert shorthand hex colors to longhand using regex
Litmus.com recommends using longhand hex colors instead of shorthand ones. So here's some regex to do that en mass:
\#(\w)(\w)(\w)(["|;])
Replace that with:
#\1\1\2\2\3\3\4
Written by BigBlueHat
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#