JRS: In article <RO********************@magma.ca>, dated Sat, 20 Nov
2004 10:16:27, seen in news:comp.lang.javascript, Ron Brennan
<rb******@magma.ca> posted :
I would like to use one or more RegExps to validate country names as having
the first and last words beginning with an uppercase letter, intermediate
words beginning with either uppercase or lowercase, and all other characters
being lowercase characters. For example:
Turks and Caicos
That policy fails for, among others,
British Virgin Islands
Campione d'Italia
Saint-Pierre et Miquelon
Turks and Caicos Islands
British Antarctic Territory
British Indian Territory
French Southern Territories
Juan de Nova Island
South Georgia and the South Sandwich Islands
Peñón de Vélez de la Gomera
and, of course,
the United States of America
Stato della Citta del Vaticano
the United Kingdom of Great Britain and Northern Ireland
Poblacht na h'Eireann
La Republique de la Cote d'Ivoire
Daulat Libiya al-'Arabiya al-Ishtrakiya al-Jumhuriya
Zhonghua Renmin Gongheguo
Chung-hua Min Kuo
and others.
Including Lord Howe Island; a place of interest that Win98 seems not to
be configurable for.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.