Submitted by Chris G - 5 years ago
Thorough UK Postcode Validator with In/Out code capture groups
A more thorough UK postcode validator tested against all UK postcodes on a regular basis, but excluding the special GIRO postcode case out of personal preference.
Additionally has capture groups for the In-code and Out-code sections.
Requires case insensitive matching.