Postcodes

Jun. 13th, 2012 08:44 pm
sobrique: (Default)
[personal profile] sobrique
Dear everyone who uses post codes on your website.
Would you kindly refrain from insisting my post code is incorrect if it doesn't include a space.
It's not rocket science to parse post codes.
They are
a) not case sensitive.
b) The second part is ALWAYS a digit, and two letters.
c) the 'first part' is ALWAYS two letters, and 1 or 2 digits.

(The first part is also geographically grouped, but the second part may not be.

So there's no ambiguity involved - you can't get 'mixed up' between AB1 23CD and AB12 3CD, AB123CD, ab123CD. They're all the same post code. (And it's region 'AB12').
Not being able to parse this on your website is just sloppy - at least, bearing in mind you're doing any validation whatsoever on your inputs. (Which you are, because you've spotted it hasn't got a space).

Date: 2012-06-14 03:25 am (UTC)
From: [identity profile] erjholton.livejournal.com
Considering there's even a British Standard that covers validation, and Wikipedia even gives example regexes (http://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom#Validation), it seems a bit shoddy.

Profile

sobrique: (Default)
sobrique

December 2015

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728 293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 19th, 2026 05:37 pm
Powered by Dreamwidth Studios