[Gllug] OT: Police Web Site

Jason Clifford jason at ukfsn.org
Thu Feb 3 08:56:33 UTC 2011


On Thu, 2011-02-03 at 08:37 +0000, Nix wrote:
> It accepts quite a lot of invalid postcodes, but it's better than
> nothing...

Whether that is true or not depends upon your reason for trying to
validate the postcode.

If you are specifically trying to avoid allowing people to enter invalid
data values then it's arguably worse than nothing as having it may give
a false sense that the application using it is correct.

Really using a regular expression to validate data which can be
syntactically correct but wrong isn't the right approach. Whether it's
worth paying for the full list of real valid postcodes for the purposes
of validating input is another question of course.

--
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list