Questions tagged [postal-code]

A postal code is a series of letters and/or digits which is useful to identify the a particular region within a postal address. Once postal codes were introduced, other applications became possible.

A postal code is a series of letters and/or digits which is useful to identify the a particular region within a postal address. Once postal codes were introduced, other applications became possible.

In February 2005, 117 of the 190 member countries of the Universal Postal Union had postal code systems. Countries that do not have national systems include Ireland and Panama. Although Hong Kong and Macau are now Special Administrative Regions of China, each maintains its own long-established postal system, which does not utilize postal codes for domestic mail, and no postal codes are assigned to Hong Kong and Macau. Mail between Hong Kong, Macau and mainland China is treated as international.

399 questions
-2
votes
1 answer

How to get individual data of postcode generated markers?

Note: I am sick of people mark it down without any comment! if you think this was a bad question please let me know why! This was not a school test, I am here to learn. Update: I have a string of array= array ("postcode1","postcode2","postcode3");…
user999
  • 53
  • 1
  • 3
  • 9
-2
votes
3 answers

How to validate a UK postal code in Java?

One of the functions in the program is a user entering their postcode. So far I have: if ( postcode != //SOMETHING// ) { JOptionPane.showMessageDialog(this, "Not UK Postcode", "Postcode must be a valid UK postcode",…
Bluestinct
  • 11
  • 1
  • 3
-2
votes
1 answer

filter out new york city zip codes

i have a list of zip codes that belongs to the state of NY, i would like to filter them to only show the zip codes belonging to the city of New York. does anyone know what are the zip codes for the city of new york, and/or if there's a programmatic…
Yehia Nada
  • 17
  • 4
-2
votes
3 answers

PHP check postcode is in list

I have a list of postcode areas (left hand part only) as below: IV1-28,IV30-32,IV36,IV40-49,IV52-56,IV63,KW1-3,KW5-14,PA21-38,PH1-26,PH30-41,PH49-50,LD1-99,SY16-20,SY23-25 My input is a UK Postcode eg. IV21 I need a PHP function to check if the…
user892970
  • 73
  • 1
  • 6
-3
votes
1 answer

How to get address from UK Postcode?

I have a database, it has table customers one of columns is UK Postcode. Is it possible to restore full address using postcode ? I'd like to do it programmatically (c# or other)
ZedZip
  • 5,794
  • 15
  • 66
  • 119
-3
votes
1 answer

Regex to identify postcode that includes comma

I need to extract a postcode from a string which is ,10, MADE UP STREET, , , MADE UP TOWN, MADE UP COUNTY, A7 , 4AB The postcode being at the end of the string. I have the regex to extract if for example the postcode is in the format A7 4AB which is…
LeonT
  • 1
  • 1
-3
votes
1 answer

Switch InputType from Text to Number on the fly

Canadian postal codes have the following format: A1A1A1, and match the following regex: [ABCEGHJKLMNPRSTVXY][0-9][A-Z][0-9][A-Z][0-9] I am setting up an EditText for the user to input their postal code. I would like to display alternatively the…
njzk2
  • 38,969
  • 7
  • 69
  • 107
-3
votes
2 answers

How to require a Postal Code to be Numeric if a Certain Country is Selected in JavaScript w/HTML

I'm coding a simple form with html w/javascript and have been working on this one aspect for about two days. I've seen numerous ideas across the internet but none seem to give me an idea of what to do. So hoping you guys can help. Basically what…
Eric Smith
  • 11
  • 8
-4
votes
4 answers

Regular expression for London only postcodes

London is a good starting point but if you are aware of regular expressions or regex for UK counties such as Surrey it would be hugely appreciated. Basically I'm creating a web crawler but the information I'm retrieving only gives a London street…
Alex
  • 71
  • 10
1 2 3
26
27