GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Incorrect postal regexes in countryInfo.txt  XML
Forum Index -> Postal Codes
Author Message
raydog



Joined: 16/05/2018 04:21:40
Messages: 2
Offline

Israel switched from their old 5-digit postal code system to a newer 7-digit one back in 2013. (Wikipedia) To support both, the entry in countryInfo.txt should probably be updated to:

Code:
^(\\d{5}|\\d{7})$


or similar. Thanks!

EDIT: Since posting the above, I also found out that the postal regex for Ireland doesn't match the Eircodes used in ireland. This would be a better regex for Ireland:

Code:
^[A-NP-Z][A-NP-Z0-9]{2}( ?[A-NP-Z0-9]{4})?$
 
Forum Index -> Postal Codes
Go to:   
Powered by JForum 2.1.5 © JForum Team