Pitfalls in UK postcode validation

By: Lukas Mai (‎mauke‎) from pound-perl.pm
Date: Lightning talk
Duration: minutes
Target audience: Any
Language: English

You can find more information on the speaker's site:


Validating UK postcodes is surprisingly difficult. There is an official regex, but it is broken. It is accompanied by an explanation in plain English, which is also broken (but in different ways).

Let's analyze what the regex actually does and fix / simplify it.


Community Sponsors

Enlightened Perl Organisation Magnum Solutions Logo Perl6 Community Perl Weekly