← The arcade

Decoders · difficulty 2 of 3

UK postcode parser 📮

Split each postcode into outward code, inward code and area letters (the leading letters of the outward code), normalising case and spacing. Reject anything that does not match the pattern.

This one is part of Pro. Plenty of arcade challenges are free to play right now.

Skills: strings, dicts, regex

Open the arcade