Page 1 of 1
Got Pseudocode for UK Field Rules?
Posted: Mon Nov 10, 2008 12:28 am
by volomike
Anyone have any pseudocode (regexps would be even cooler) for UK fields? In particular I am interested in:
Address Line 1
Home Phone
Mobile Phone (do they have a special prefix?)
Post Code
I only know the ones for the USA.
Re: Got Pseudocode for UK Field Rules?
Posted: Mon Nov 10, 2008 2:20 am
by volomike
I found the answer on Stack Overflow:
http://www.braemoor.co.uk/software/postcodes.shtml
In the margin, it answers not only UK post codes, but UK phone numbers too. If you see a problem with the PHP source on this, please do let me know because I'm going to run with this.
Re: Got Pseudocode for UK Field Rules?
Posted: Mon Nov 10, 2008 3:36 am
by prometheuzz
volomike wrote:Anyone have any pseudocode (regexps would be even cooler) for UK fields? In particular I am interested in:
Address Line 1
Home Phone
Mobile Phone (do they have a special prefix?)
Post Code
I only know the ones for the USA.
Phone numbers in the UK (also mobile phones):
http://en.wikipedia.org/wiki/Telephone_ ... ed_Kingdom
Postal codes in the UK (ZIP codes):
http://en.wikipedia.org/wiki/UK_postcodes
And addresses are as good as impossible to validate. Seriously.