}
function ohc_replaceflagohc_flagathlete(){
var txt=document.editform.wpTextbox1;
//rem linking templates
regex(/((?:manager|chairman|club|coach|CEO|president) *= *)\{\{flagicon\|(?:\|[^{}]+|)\}\} ?(\[\[(?:[^\]]+)\]\])/gi, '{{flagathlete|$2|$1}}'); //duplicatedusing template with incountry Ohc_format_MOSFLAGidentifier
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ABW|ARU|Aruba)|ABW|ARU)(?:\|[^{}]+|)\}\}/g, '$1Aruba');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(AFG|Afghanistan)|AFG)(?:\|[^{}]+|)\}\}/g, '$1Afghanistan');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(AGO|ANG|Angola)|AGO|ANG)(?:\|[^{}]+|)\}\}/g, '$1Angola');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(AHO|Netherlands Antilles)|AHO)(?:\|[^{}]+|)\}\}/g, '$1Netherlands Antilles');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(AIA|Anguilla)|AIA)(?:\|[^{}]+|)\}\}/g, '$1Anguilla');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ALA|Åland Islands)|ALA)(?:\|[^{}]+|)\}\}/g, '$1Åland Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ALB|Albania)|ALB)(?:\|[^{}]+|)\}\}/g, '$1Albania');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(AND|Andorra)|AND)(?:\|[^{}]+|)\}\}/g, '$1Andorra');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ANT|Antigua and Barbuda)|ANT)(?:\|[^{}]+|)\}\}/g, '$1Antigua and Barbuda');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ARE|UAE|United Arab Emirates)|ARE|UAE)(?:\|[^{}]+|)\}\}/g, '$1United Arab Emirates');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ARG|Argentina)|ARG)(?:\|[^{}]+|)\}\}/g, '$1Argentina');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ARM|Armenia)|ARM)(?:\|[^{}]+|)\}\}/g, '$1Armenia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ASM|SAM|ASA|American Samoa)|ASM|SAM|ASA)(?:\|[^{}]+|)\}\}/g, '$1American Samoa');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ATA|Antarctica)|ATA)(?:\|[^{}]+|)\}\}/g, '$1Antarctica');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ATF|French Southern Territories)|ATF)(?:\|[^{}]+|)\}\}/g, '$1French Southern Territories');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ATG|Antigua and Barbuda)|ATG)(?:\|[^{}]+|)\}\}/g, '$1Antigua and Barbuda');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(AUS|Australia)|AUS)(?:\|[^{}]+|)\}\}/g, '$1Australia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(AUT|Austria)|AUT)(?:\|[^{}]+|)\}\}/g, '$1Austria');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(AZE|Azerbaijan)|AZE)(?:\|[^{}]+|)\}\}/g, '$1Azerbaijan');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BDI|Burundi)|BDI)(?:\|[^{}]+|)\}\}/g, '$1Burundi');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BEL|Belgium)|BEL)(?:\|[^{}]+|)\}\}/g, '$1Belgium');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BEN|Benin)|BEN)(?:\|[^{}]+|)\}\}/g, '$1Benin');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BES|Bonaire, Sint Eustatius and Saba)|BES)(?:\|[^{}]+|)\}\}/g, '$1Bonaire, Sint Eustatius and Saba');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BFA|BUR|Burkina Faso)|BFA|BUR)(?:\|[^{}]+|)\}\}/g, '$1Burkina Faso');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BGD|BAN|Bangladesh)|BGD|BAN)(?:\|[^{}]+|)\}\}/g, '$1Bangladesh');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BGR|BUL|Bulgaria)|BGR|BUL)(?:\|[^{}]+|)\}\}/g, '$1Bulgaria');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BHN|BHR|Bahrain)|BHN|BHR)(?:\|[^{}]+|)\}\}/g, '$1Bahrain');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BHS|BAH|Bahamas)|BHS|BAH)(?:\|[^{}]+|)\}\}/g, '$1Bahamas');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BIH|Bosnia and Herzegovina)|BIH)(?:\|[^{}]+|)\}\}/g, '$1Bosnia and Herzegovina');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BLM|Saint Barthélemy)|BLM)(?:\|[^{}]+|)\}\}/g, '$1Saint Barthélemy');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BLR|Belarus)|BLR)(?:\|[^{}]+|)\}\}/g, '$1Belarus');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BLZ|BIZ|Belize)|BLZ|BIZ)(?:\|[^{}]+|)\}\}/g, '$1Belize');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BMU|BER|Bermuda)|BMU|BER)(?:\|[^{}]+|)\}\}/g, '$1Bermuda');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BOL|Bolivia)|BOL)(?:\|[^{}]+|)\}\}/g, '$1Bolivia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BRA|Brazil)|BRA)(?:\|[^{}]+|)\}\}/g, '$1Brazil');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BRB|BAR|Barbados)|BRB|BAR)(?:\|[^{}]+|)\}\}/g, '$1Barbados');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BRN|BRU|Brunei)|BRN|BRU)(?:\|[^{}]+|)\}\}/g, '$1Brunei');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BTN|BHU|Bhutan)|BTN|BHU)(?:\|[^{}]+|)\}\}/g, '$1Bhutan');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BVT|Bouvet Island)|BVT)(?:\|[^{}]+|)\}\}/g, '$1Bouvet Island');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BWA|BOT|Botswana)|BWA|BOT)(?:\|[^{}]+|)\}\}/g, '$1Botswana');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(BIR|Burma)|BIR)(?:\|[^{}]+|)\}\}/g, '$1Burma');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CAF|Central African Republic)|CAF)(?:\|[^{}]+|)\}\}/g, '$1Central African Republic');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CAN|Canada)|CAN)(?:\|[^{}]+|)\}\}/g, '$1Canada');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CCK|Cocos (Keeling) Islands)|CCK)(?:\|[^{}]+|)\}\}/g, '$1Cocos (Keeling) Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CHE|S[UW]I|Switzerland)|CHE|S[UW]I)(?:\|[^{}]+|)\}\}/g, '$1Switzerland');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CHL|CHI|Chile)|CHL|CHI)(?:\|[^{}]+|)\}\}/g, '$1Chile');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CHN|PRC|(?:People\'s Republic of |)China)|CHN|PRC)(?:\|[^{}]+|)\}\}/g, '$1People\'s Republic of China');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CIV|Côte d'Ivoire)|CIV)(?:\|[^{}]+|)\}\}/g, '$1Côte d\'Ivoire');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CMR|Cameroon)|CMR)(?:\|[^{}]+|)\}\}/g, '$1Cameroon');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(COD|Democratic Republic of the Congo)|COD)(?:\|[^{}]+|)\}\}/g, '$1Democratic Republic of the Congo');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(COG|CGO|Republic of the Congo|Congo, Republic of the)|COG|CGO)(?:\|[^{}]+|)\}\}/g, '$1Republic of the Congo');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(COK|Cook Islands)|COK)(?:\|[^{}]+|)\}\}/g, '$1Cook Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(COL|Colombia)|COL)(?:\|[^{}]+|)\}\}/g, '$1Colombia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(COM|Comoros)|COM)(?:\|[^{}]+|)\}\}/g, '$1Comoros');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CPV|Cape Verde)|CPV)(?:\|[^{}]+|)\}\}/g, '$1Cape Verde');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CRI|CRC|Costa Rica)|CRI|CRC)(?:\|[^{}]+|)\}\}/g, '$1Costa Rica');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CUB|Cuba)|CUB)(?:\|[^{}]+|)\}\}/g, '$1Cuba');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CU[RW]|Curaçao)|CU[RW])(?:\|[^{}]+|)\}\}/g, '$1Curaçao');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CXR|Christmas Island)|CXR)(?:\|[^{}]+|)\}\}/g, '$1Christmas Island');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CYM|CAY|Cayman Islands)|CYM|CAY)(?:\|[^{}]+|)\}\}/g, '$1Cayman Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CYP|Cyprus)|CYP)(?:\|[^{}]+|)\}\}/g, '$1Cyprus');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(CZE|Czech Republic)|CZE)(?:\|[^{}]+|)\}\}/g, '$1Czech Republic');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(DDR|East Germany)|DDR)(?:\|[^{}]+|)\}\}/g, '$1East Germany');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(DEU|GER|Germany)|DEU|GER)(?:\|[^{}]+|)\}\}/g, '$1Germany');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(DJI|Djibouti)|DJI)(?:\|[^{}]+|)\}\}/g, '$1Djibouti');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(DMA|Dominica)|DMA)(?:\|[^{}]+|)\}\}/g, '$1Dominica');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(DNK|DEN|Denmark)|DNK|DEN)(?:\|[^{}]+|)\}\}/g, '$1Denmark');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(DOM|Dominican Republic)|DOM)(?:\|[^{}]+|)\}\}/g, '$1Dominican Republic');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(DZA|ALG|Algeria)|DZA|ALG)(?:\|[^{}]+|)\}\}/g, '$1Algeria');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ECU|Ecuador)|ECU)(?:\|[^{}]+|)\}\}/g, '$1Ecuador');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(EGY|Egypt)|EGY)(?:\|[^{}]+|)\}\}/g, '$1Egypt');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ENG|England)|ENG)(?:\|[^{}]+|)\}\}/g, '$1England');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ERI|Eritrea)|ERI)(?:\|[^{}]+|)\}\}/g, '$1Eritrea');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ESH|Western Sahara)|ESH)(?:\|[^{}]+|)\}\}/g, '$1Western Sahara');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ESP|SP[AN]|Spain)|ESP|SP[AN])(?:\|[^{}]+|)\}\}/g, '$1Spain');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(EST|Estonia)|EST)(?:\|[^{}]+|)\}\}/g, '$1Estonia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ETH|Ethiopia)|ETH)(?:\|[^{}]+|)\}\}/g, '$1Ethiopia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(FIN|Finland)|FIN)(?:\|[^{}]+|)\}\}/g, '$1Finland');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(FJI|FIJ|Fiji)|FJI|FIJ)(?:\|[^{}]+|)\}\}/g, '$1Fiji');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(FLK|Falkland Islands)|FLK)(?:\|[^{}]+|)\}\}/g, '$1Falkland Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(FRA|France)|FRA)(?:\|[^{}]+|)\}\}/g, '$1France');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(FRO|Faroe Islands)|FRO)(?:\|[^{}]+|)\}\}/g, '$1Faroe Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(FSM|(?:Federated States of |)Micronesia)|FSM)(?:\|[^{}]+|)\}\}/g, '$1Federated States of Micronesia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GAB|Gabon)|GAB)(?:\|[^{}]+|)\}\}/g, '$1Gabon');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GBR|UK|United Kingdom)|GBR|UK)(?:\|[^{}]+|)\}\}/g, '$1United Kingdom');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GBR2|Great Britain)|GBR2)(?:\|[^{}]+|)\}\}/g, '$1Great Britain');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GDR|East Germany)|GDR)(?:\|[^{}]+|)\}\}/g, '$1East Germany');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GEO|Georgia)|GEO)(?:\|[^{}]+|)\}\}/g, '$1Georgia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GGY|Guernsey)|GGY)(?:\|[^{}]+|)\}\}/g, '$1Guernsey');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GHA|Ghana)|GHA)(?:\|[^{}]+|)\}\}/g, '$1Ghana');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GIB|Gibraltar)|GIB)(?:\|[^{}]+|)\}\}/g, '$1Gibraltar');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GIN|GUI|Guinea)|GIN|GUI)(?:\|[^{}]+|)\}\}/g, '$1Guinea');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GLP|Guadeloupe)|GLP)(?:\|[^{}]+|)\}\}/g, '$1Guadeloupe');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GMB|GAM|(?:The |)Gambia)|GMB|GAM)(?:\|[^{}]+|)\}\}/g, '$1Gambia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GNB|GBS|Guinea-Bissau)|GNB|GBS)(?:\|[^{}]+|)\}\}/g, '$1Guinea-Bissau');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GNQ|GEQ|Equatorial Guinea)|GNQ|GEQ)(?:\|[^{}]+|)\}\}/g, '$1Equatorial Guinea');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GRC|GRE|Greece)|GRC|GRE)(?:\|[^{}]+|)\}\}/g, '$1Greece');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GRD|GRN|Grenada)|GRD|GRN)(?:\|[^{}]+|)\}\}/g, '$1Grenada');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GRL|Greenland)|GRL)(?:\|[^{}]+|)\}\}/g, '$1Greenland');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GTM|GUA|Guatemala)|GTM|GUA)(?:\|[^{}]+|)\}\}/g, '$1Guatemala');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GUF|French Guiana)|GUF)(?:\|[^{}]+|)\}\}/g, '$1French Guiana');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GUM|Guam)|GUM)(?:\|[^{}]+|)\}\}/g, '$1Guam');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(GUY|Guyana)|GUY)(?:\|[^{}]+|)\}\}/g, '$1Guyana');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(HKG|Hong Kong)|HKG)(?:\|[^{}]+|)\}\}/g, '$1Hong Kong');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(HMD|Heard Island and McDonald Islands)|HMD)(?:\|[^{}]+|)\}\}/g, '$1Heard Island and McDonald Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(HND|HON|Honduras)|HND|HON)(?:\|[^{}]+|)\}\}/g, '$1Honduras');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(HRV|CRO|Croatia)|HRV|CRO)(?:\|[^{}]+|)\}\}/g, '$1Croatia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(HTI|HAI|Haiti)|HTI|HAI)(?:\|[^{}]+|)\}\}/g, '$1Haiti');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(HUN|Hungary)|HUN)(?:\|[^{}]+|)\}\}/g, '$1Hungary');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(IDN|INA|Indonesia)|IDN|INA)(?:\|[^{}]+|)\}\}/g, '$1Indonesia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(IMN|IOM|Isle of Man)|IMN|IOM)(?:\|[^{}]+|)\}\}/g, '$1Isle of Man');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(IND|India)|IND)(?:\|[^{}]+|)\}\}/g, '$1India');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(IOT|British Indian Ocean Territory)|IOT)(?:\|[^{}]+|)\}\}/g, '$1British Indian Ocean Territory');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(IRL|Ireland)|IRL)(?:\|[^{}]+|)\}\}/g, '$1Ireland');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(IRN|IRI|Iran)|IRN|IRI)(?:\|[^{}]+|)\}\}/g, '$1Iran');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(IRQ|Iraq)|IRQ)(?:\|[^{}]+|)\}\}/g, '$1Iraq');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ISL|Iceland)|ISL)(?:\|[^{}]+|)\}\}/g, '$1Iceland');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ISR|Israel)|ISR)(?:\|[^{}]+|)\}\}/g, '$1Israel');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ITA|Italy)|ITA)(?:\|[^{}]+|)\}\}/g, '$1Italy');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(JAM|Jamaica)|JAM)(?:\|[^{}]+|)\}\}/g, '$1Jamaica');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(JEY|Jersey)|JEY)(?:\|[^{}]+|)\}\}/g, '$1Jersey');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(JOR|Jordan)|JOR)(?:\|[^{}]+|)\}\}/g, '$1Jordan');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(JPN|JAP|Japan)|JPN|JAP)(?:\|[^{}]+|)\}\}/g, '$1Japan');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(KAZ|Kazakhstan)|KAZ)(?:\|[^{}]+|)\}\}/g, '$1Kazakhstan');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(KEN|Kenya)|KEN)(?:\|[^{}]+|)\}\}/g, '$1Kenya');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(KGZ|Kyrgyzstan)|KGZ)(?:\|[^{}]+|)\}\}/g, '$1Kyrgyzstan');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(KHM|CAM|Cambodia)|KHM|CAM)(?:\|[^{}]+|)\}\}/g, '$1Cambodia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(KIR|Kiribati)|KIR)(?:\|[^{}]+|)\}\}/g, '$1Kiribati');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(KNA|SKN|Saint Kitts and Nevis)|KNA|SKN)(?:\|[^{}]+|)\}\}/g, '$1Saint Kitts and Nevis');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(?:KOR|ROK|(South |Republic of )Korea)|KOR|ROK)(?:\|[^{}]+|)\}\}/g, '$1$1Korea');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(KWT|KUW|Kuwait)|KWT|KUW)(?:\|[^{}]+|)\}\}/g, '$1Kuwait');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(LAO|Laos)|LAO)(?:\|[^{}]+|)\}\}/g, '$1Laos');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(LBN|LIB|Lebanon)|LBN|LIB)(?:\|[^{}]+|)\}\}/g, '$1Lebanon');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(LBR|Liberia)|LBR)(?:\|[^{}]+|)\}\}/g, '$1Liberia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(LBY|LBA|Libya)|LBY|LBA)(?:\|[^{}]+|)\}\}/g, '$1Libya');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(LCA|Saint Lucia)|LCA)(?:\|[^{}]+|)\}\}/g, '$1Saint Lucia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(LIE|Liechtenstein)|LIE)(?:\|[^{}]+|)\}\}/g, '$1Liechtenstein');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(LKA|SRI|Sri Lanka)|LKA|SRI)(?:\|[^{}]+|)\}\}/g, '$1Sri Lanka');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(LSO|LES|Lesotho)|LSO|LES)(?:\|[^{}]+|)\}\}/g, '$1Lesotho');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(LTU|Lithuania)|LTU)(?:\|[^{}]+|)\}\}/g, '$1Lithuania');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(LUX|Luxembourg)|LUX)(?:\|[^{}]+|)\}\}/g, '$1Luxembourg');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(LVA|LAT|Latvia)|LVA|LAT)(?:\|[^{}]+|)\}\}/g, '$1Latvia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MAC|Macao)|MAC)(?:\|[^{}]+|)\}\}/g, '$1Macao');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MAF|Saint Martin)|MAF)(?:\|[^{}]+|)\}\}/g, '$1Saint Martin');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MAR|Morocco)|MAR)(?:\|[^{}]+|)\}\}/g, '$1Morocco');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MCO|MON|Monaco)|MCO|MON)(?:\|[^{}]+|)\}\}/g, '$1Monaco');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MDA|Moldova)|MDA)(?:\|[^{}]+|)\}\}/g, '$1Republic of Moldova');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MDG|MAD|Madagascar)|MDG|MAD)(?:\|[^{}]+|)\}\}/g, '$1Madagascar');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MDV|Maldives)|MDV)(?:\|[^{}]+|)\}\}/g, '$1Maldives');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MEX|M[ée]xico)|MEX)(?:\|[^{}]+|)\}\}/g, '$1Mexico');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MHL|Marshall Islands)|MHL)(?:\|[^{}]+|)\}\}/g, '$1Marshall Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MKD|Macedonia)|MKD)(?:\|[^{}]+|)\}\}/g, '$1Macedonia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MLI|Mali)|MLI)(?:\|[^{}]+|)\}\}/g, '$1Mali');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MLT|Malta)|MLT)(?:\|[^{}]+|)\}\}/g, '$1Malta');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MMR|MYA|Myanmar)|MMR|MYA)(?:\|[^{}]+|)\}\}/g, '$1Myanmar');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MNE|Montenegro)|MNE)(?:\|[^{}]+|)\}\}/g, '$1Montenegro');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MNG|MGL|Mongolia)|MNG|MGL)(?:\|[^{}]+|)\}\}/g, '$1Mongolia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MNP|NMI|Northern Mariana Islands)|MNP|NMI)(?:\|[^{}]+|)\}\}/g, '$1Northern Mariana Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MOZ|Mozambique)|MOZ)(?:\|[^{}]+|)\}\}/g, '$1Mozambique');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MRT|MTN|Mauritania)|MRT|MTN)(?:\|[^{}]+|)\}\}/g, '$1Mauritania');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MSR|Montserrat)|MSR)(?:\|[^{}]+|)\}\}/g, '$1Montserrat');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MTQ|Martinique)|MTQ)(?:\|[^{}]+|)\}\}/g, '$1Martinique');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MUS|MRI|Mauritius)|MUS|MRI)(?:\|[^{}]+|)\}\}/g, '$1Mauritius');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MWI|MAW|Malawi)|MWI|MAW)(?:\|[^{}]+|)\}\}/g, '$1Malawi');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MYS|MAS|Malaysia)|MYS|MAS)(?:\|[^{}]+|)\}\}/g, '$1Malaysia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(MYT|Mayotte)|MYT)(?:\|[^{}]+|)\}\}/g, '$1Mayotte');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(NAM|Namibia)|NAM)(?:\|[^{}]+|)\}\}/g, '$1Namibia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(NCL|New Caledonia)|NCL)(?:\|[^{}]+|)\}\}/g, '$1New Caledonia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(NER|NIG|Niger)|NER|NIG)(?:\|[^{}]+|)\}\}/g, '$1Niger');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(NFK|Norfolk Island)|NFK)(?:\|[^{}]+|)\}\}/g, '$1Norfolk Island');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(NIR|Northern Ireland)|NIR)(?:\|[^{}]+|)\}\}/g, '$1Northern Ireland');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(NGA|NGR|Nigeria)|NGA|NGR)(?:\|[^{}]+|)\}\}/g, '$1Nigeria');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(NIC|NCA|Nicaragua)|NIC|NCA)(?:\|[^{}]+|)\}\}/g, '$1Nicaragua');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(NIU|Niue)|NIU)(?:\|[^{}]+|)\}\}/g, '$1Niue');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(NLD|NED|(The |)Netherlands)|NLD|NED)(?:\|[^{}]+|)\}\}/g, '$1Netherlands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(NOR|Norway)|NOR)(?:\|[^{}]+|)\}\}/g, '$1Norway');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(NPL|NEP|Nepal)|NPL|NEP)(?:\|[^{}]+|)\}\}/g, '$1Nepal');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(NRU|Nauru)|NRU)(?:\|[^{}]+|)\}\}/g, '$1Nauru');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(NZL?|New Zealand)|NZL?)(?:\|[^{}]+|)\}\}/g, '$1New Zealand');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(OMN|OMA|Oman)|OMN|OMA)(?:\|[^{}]+|)\}\}/g, '$1Oman');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(PAK|Pakistan)|PAK)(?:\|[^{}]+|)\}\}/g, '$1Pakistan');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(PAN|Panama)|PAN)(?:\|[^{}]+|)\}\}/g, '$1Panama');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(PCN|Pitcairn Islands)|PCN)(?:\|[^{}]+|)\}\}/g, '$1Pitcairn Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(PER|Peru)|PER)(?:\|[^{}]+|)\}\}/g, '$1Peru');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(PHL|PHI|Philippines)|PHL|PHI)(?:\|[^{}]+|)\}\}/g, '$1Philippines');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(PLW|Palau)|PLW)(?:\|[^{}]+|)\}\}/g, '$1Palau');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(PNG|Papua New Guinea)|PNG)(?:\|[^{}]+|)\}\}/g, '$1Papua New Guinea');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(POL|Poland)|POL)(?:\|[^{}]+|)\}\}/g, '$1Poland');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(PRI|PUR|Puerto Rico)|PRI|PUR)(?:\|[^{}]+|)\}\}/g, '$1Puerto Rico');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(PRK|North Korea)|PRK)(?:\|[^{}]+|)\}\}/g, '$1North Korea');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(PRT|POR|Portugal)|PRT|POR)(?:\|[^{}]+|)\}\}/g, '$1Portugal');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(PRY|PAR|Paraguay)|PRY|PAR)(?:\|[^{}]+|)\}\}/g, '$1Paraguay');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(PSE|PLE|Palestinian Territory)|PSE|PLE)(?:\|[^{}]+|)\}\}/g, '$1Palestinian Territory');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(PYF|French Polynesia)|PYF)(?:\|[^{}]+|)\}\}/g, '$1French Polynesia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(QAT|Qatar)|QAT)(?:\|[^{}]+|)\}\}/g, '$1Qatar');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(REU|Réunion)|REU)(?:\|[^{}]+|)\}\}/g, '$1Réunion');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ROC|Republic of China)|ROC)(?:\|[^{}]+|)\}\}/g, '$1Republic of China');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ROU|ROM|Romania)|ROU|ROM)(?:\|[^{}]+|)\}\}/g, '$1Romania');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(RUS|Russia)|RUS)(?:\|[^{}]+|)\}\}/g, '$1Russia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(RWA|Rwanda)|RWA)(?:\|[^{}]+|)\}\}/g, '$1Rwanda');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SAU|KSA|Saudi Arabia)|SAU|KSA)(?:\|[^{}]+|)\}\}/g, '$1Saudi Arabia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SDN|SUD|Sudan)|SDN|SUD)(?:\|[^{}]+|)\}\}/g, '$1Sudan');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SCO|Scotland)|SCO)(?:\|[^{}]+|)\}\}/g, '$1Scotland');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SCG|Serbia and Montenegro)|SCG)(?:\|[^{}]+|)\}\}/g, '$1Serbia and Montenegro');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SEN|Senegal)|SEN)(?:\|[^{}]+|)\}\}/g, '$1Senegal');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SGP|SIN|Singapore)|SGP|SIN)(?:\|[^{}]+|)\}\}/g, '$1Singapore');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SGS|South Georgia and the South Sandwich Islands)|SGS)(?:\|[^{}]+|)\}\}/g, '$1South Georgia and the South Sandwich Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SHN|Saint Helena, Ascension and Tristan da Cunha)|SHN)(?:\|[^{}]+|)\}\}/g, '$1Saint Helena, Ascension and Tristan da Cunha');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SJM|Svalbard and Jan Mayen)|SJM)(?:\|[^{}]+|)\}\}/g, '$1Svalbard and Jan Mayen');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SLB|SOL|Solomon Islands)|SLB|SOL)(?:\|[^{}]+|)\}\}/g, '$1Solomon Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SLE|Sierra Leone)|SLE)(?:\|[^{}]+|)\}\}/g, '$1Sierra Leone');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SLV|ESA|El Salvador)|SLV|ESA)(?:\|[^{}]+|)\}\}/g, '$1El Salvador');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SMR|San Marino)|SMR)(?:\|[^{}]+|)\}\}/g, '$1San Marino');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SOM|Somalia)|SOM)(?:\|[^{}]+|)\}\}/g, '$1Somalia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SPM|Saint Pierre and Miquelon)|SPM)(?:\|[^{}]+|)\}\}/g, '$1Saint Pierre and Miquelon');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SRB|Serbia)|SRB)(?:\|[^{}]+|)\}\}/g, '$1Serbia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(STP|S[aã]o Tom[eé] and Príncipe)|STP)(?:\|[^{}]+|)\}\}/g, '$1Sao Tome and Principe');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SUR|Suriname)|SUR)(?:\|[^{}]+|)\}\}/g, '$1Suriname');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SVK|Slovakia)|SVK)(?:\|[^{}]+|)\}\}/g, '$1Slovakia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SVN|SLO|Slovenia)|SVN|SLO)(?:\|[^{}]+|)\}\}/g, '$1Slovenia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SWE|Sweden)|SWE)(?:\|[^{}]+|)\}\}/g, '$1Sweden');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SWZ|Swaziland)|SWZ)(?:\|[^{}]+|)\}\}/g, '$1Swaziland');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SXM|Sint Maarten)|SXM)(?:\|[^{}]+|)\}\}/g, '$1Sint Maarten');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SYC|SEY|Seychelles)|SYC|SEY)(?:\|[^{}]+|)\}\}/g, '$1Seychelles');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(SYR|(Syrian Arab Republic|Syria))|SYR)(?:\|[^{}]+|)\}\}/g, '$1Syria');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TCA|Turks and Caicos Islands)|TCA)(?:\|[^{}]+|)\}\}/g, '$1Turks and Caicos Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TCH|Czechoslovakia)|TCH)(?:\|[^{}]+|)\}\}/g, '$1Czechoslovakia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TCD|CHA|Chad)|TCD|CHA)(?:\|[^{}]+|)\}\}/g, '$1Chad');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TGO|TOG|Togo)|TGO|TOG)(?:\|[^{}]+|)\}\}/g, '$1Togo');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(THA|Thailand)|THA)(?:\|[^{}]+|)\}\}/g, '$1Thailand');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TJK|Tajikistan)|TJK)(?:\|[^{}]+|)\}\}/g, '$1Tajikistan');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TKL|Tokelau)|TKL)(?:\|[^{}]+|)\}\}/g, '$1Tokelau');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TKM|Turkmenistan)|TKM)(?:\|[^{}]+|)\}\}/g, '$1Turkmenistan');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TLS|East Timor|Timor.Leste)|TLS)(?:\|[^{}]+|)\}\}/g, '$1East Timor');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TON|TGA|Tonga)|TON|TGA)(?:\|[^{}]+|)\}\}/g, '$1Tonga');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TTO|TRI|Trinidad and Tobago)|TTO|TRI)(?:\|[^{}]+|)\}\}/g, '$1Trinidad and Tobago');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TUN|Tunisia)|TUN)(?:\|[^{}]+|)\}\}/g, '$1Tunisia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TUR|Turkey)|TUR)(?:\|[^{}]+|)\}\}/g, '$1Turkey');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TUV|Tuvalu)|TUV)(?:\|[^{}]+|)\}\}/g, '$1Tuvalu');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TWN|Taiwan)|TWN)(?:\|[^{}]+|)\}\}/g, '$1Taiwan');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(TZA|TAN|Tanzania)|TZA|TAN)(?:\|[^{}]+|)\}\}/g, '$1Tanzania');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(UGA|Uganda)|UGA)(?:\|[^{}]+|)\}\}/g, '$1Uganda');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(UKR|Ukraine)|UKR)(?:\|[^{}]+|)\}\}/g, '$1Ukraine');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(UMI|United States Minor Outlying Islands)|UMI)(?:\|[^{}]+|)\}\}/g, '$1United States Minor Outlying Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(URY|URU|Uruguay)|URY|URU)(?:\|[^{}]+|)\}\}/g, '$1Uruguay');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(URS|Soviet Union|USSR)|USSR|URS)(?:\|[^{}]+|)\}\}/g, '$1Soviet Union');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(USA?|United States(?: of America|))|USA?)(?:\|[^{}]+|)\}\}/g, '$1United States');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(UZB|Uzbekistan)|UZB)(?:\|[^{}]+|)\}\}/g, '$1Uzbekistan');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(VAT|Vatican City)|VAT)(?:\|[^{}]+|)\}\}/g, '$1Vatican City');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(VCT|VIN|Saint Vincent and the Grenadines)|VCT|VIN)(?:\|[^{}]+|)\}\}/g, '$1Saint Vincent and the Grenadines');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(VEN|Venezuela)|VEN)(?:\|[^{}]+|)\}\}/g, '$1Venezuela');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(VGB|IVB|British Virgin Islands)|VGB|IVB)(?:\|[^{}]+|)\}\}/g, '$1British Virgin Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(VIR|ISV|United States Virgin Islands)|VIR|ISV)(?:\|[^{}]+|)\}\}/g, '$1United States Virgin Islands');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(VNM|VIE|Viet ?[Nn]am)|VNM|VIE)(?:\|[^{}]+|)\}\}/g, '$1Viet Nam');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(VUT|VAN|Vanuatu)|VUT|VAN)(?:\|[^{}]+|)\}\}/g, '$1Vanuatu');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(WAL|Wales)|WAL)(?:\|[^{}]+|)\}\}/g, '$1Wales');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(WLF|Wallis and Futuna)|WLF)(?:\|[^{}]+|)\}\}/g, '$1Wallis and Futuna');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(WSM|Samoa)|WSM)(?:\|[^{}]+|)\}\}/g, '$1Samoa');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(YEM|Yemen)|YEM)(?:\|[^{}]+|)\}\}/g, '$1Yemen');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(YUG|Yugoslavia)|YUG)(?:\|[^{}]+|)\}\}/g, '$1Yugoslavia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ZAF|RSA|South Africa)|ZAF|RSA)(?:\|[^{}]+|)\}\}/g, '$1South Africa');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ZAI|Zaire)|ZAI)(?:\|[^{}]+|)\}\}/g, '$1Zaire');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ZMB|ZAM|Zambia)|ZMB|ZAM)(?:\|[^{}]+|)\}\}/g, '$1Zambia');
regex(/((?:nationality|country(?:_represented|)) *= *|<br\/?>)\{\{(?:flag(?:country|u?)[ ]*\|[ ]*(ZWE|ZIM|Zimbabwe)|ZWE|ZIM)(?:\|[^{}]+|)\}\}/g, '$1Zimbabwe');
// regex(/((?:country) *= *)\{\{flag\|([^\{\}]*)\}\} ?/gi, '$1$2');
// regex(/((?:country) *= *)\{\{flag\|(UK|USA)\}\} ?/gi, '$1$2');
// regex(/((?:country) *= *)\{\{flag\|(AUS)\}\} ?/gi, '$1Australia');
// regex(/((?:country) *= *)\{\{flag\|(FRA)\}\} ?/gi, '$1France');
// regex(/((?:country) *= *)\{\{flag\|(IND)\}\} ?/gi, '$1India');
// regex(/((?:manager|chairman) *= *)\{\{flag(?:u|icon|)\|([^\{\}]*)\}\} ?/gi, '$1$2');
}
if(document.forms.editform) {
addPortletLink('p-tb', 'javascript:ohc_flagcruft_driver()', 'FLAGCRUFT', 'cruft', 'cruft', '', '');
addPortletLink('p-tb', 'javascript:ohc_flagathlete()', 'FLAGATHLETE', 'use template with country identifier', 'cruft', '', '');
addPortletLink('p-tb', 'javascript:Ohc_flag_to_country()', 'FLAG->COUNTRY', 'cruft', 'cruft', '', '');
|