Hash map of country ISO-3 code to regular expression identifier. Regular
expression data is taken from Vincent Arel-Bundock's countrycode
R
package (GPL-3 License). Big ups! 🍻
npm install country-regex
var countryRegex = require('country-regex')
// and then for example:
countryRegex['USA']
// => 'united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)'
2017 Étienne Tétreault-Pinard. MIT License