Quick UK Post Code Regex

It's been a while since I wrote anything on here, but here's a quickie: a simple UK post code regex: /^([A-z]{2}\d{1,2})\s?(\d{1}[A-z]{2})/ If it doesn't work for you or you think you can make it better, please stick something in the comments :)

© Ahmed Nuaman, all of my code and stuff is available under a 'Attribution-ShareAlike 3.0 Unported' license, however my clients own their respective copyrights.

Contact me

07811 184 436
London & Kent, UK