Validate UK postcode

There’s a nice PHP script here…


Which validates the format of the UK postcode. It would be great to somehow hack this in, but the profile stuff is too complicated for my tiny brain.:slight_smile:

Any pointers for me?

This would be handy, i hate it when poeple write the postcode in lowercase and without the gap.