The best regular expression (regex) for matching hex color values from string.
npm i hex-color-regex --save
npm test
For more use-cases see the tests
var hexColorRegex = require('hex-color-regex')
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.