The function as it is at the moment only works properly if the data looks like a postcode.
AA1 1AA returns false
SW1 1AA returns true
AAAA gives an error.
So you'll need some sort of error handling if you're going to use it in anger.
AA1 1AA returns false
SW1 1AA returns true
AAAA gives an error.
So you'll need some sort of error handling if you're going to use it in anger.
Comment