MAC Regex
A regular expression for matching MAC addresses.
Installation
npm i --save mac-regex
Usage
var mac = ; // Exact string option // => true // => true // => false // => false // Global option (default) // => true // => false '11:22:aa:44:55:33 11:22:aa:44:55:33'// => ['11:22:aa:44:55:33', '11:22:aa:44:55:33']
Acknowledgements
- Regex from http://stackoverflow.com/a/4260512/1378668.
License
MIT
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by John Otander.