this is a fantastic script, however is there anyway that i can change the postcode format to check for a UK postcode.
It seems to only validate postcodes in the form of ZIP code ie numerical values.
In the UK the postcode works on AB12 3CD ?
edit to add i found this reg
Assuming this regexp is correct you can put it in the validator.js among other formats and make it embedded so you can refer it by assigned name.
example from validator.js:
then you use it as:
or you can use the regexp right in the config
To get validate UK postcodes and extended info about them you may find here: http://www.getgeocode.com/postcodes/uk/