Not all languages tags can be parsed

Spanish of Latin America has tag: es-419, that cannot be parsed by the regexp.