GitHunt

Build Status
tippin.me
Donate.Paypal
Donate.Coffee
Donate.Patreon

Regex hexColor ?

Regular expression for matching a hexcolor

Install

$ npm install --save regex-hexcolor

Usage

const regexHex = require(regex-hexcolor);
const fullHex = "#FFFFFF";
const hex = "#FFF";

regexHex.test(fullHex);
regexHex.test(hex);

License

MIT © James Perkins

Languages

JavaScript100.0%

Contributors

Created April 10, 2019
Updated July 11, 2019
perkinsjr/regex-hexcolor | GitHunt