UK Postcode Checker

Published on Tue Mar 01 2022

Checks for valid UK/British postcodes. There was another on here that had for some reason been upvoted, but it was actually incorrect as it worked on none of my valid own postcodes! Namely that it assumed two letters and a number (BS3) when you can have variations (M20). Allows for an optional space and separates the two parts into groups.

Additional matching regexes for
UK Postcode Checker

UK Postcode Checker

Checks for valid UK/British postcodes. There was another on here that had for some reason been upvoted, but it was actually incorrect as it worked on none of my valid own postcodes! Namely that it assumed two letters and a number (BS3) when you can have variations (M20). Allows for an optional space and separates the two parts into groups.

Better version of UK postcode

This UK postcode regex will match all variants of postcode formats including inner London postcodes (eg SW1A), with optional space (both AL11XP and AL1 1XP are valid) It will reject any postcode that does not specify a valid postcode area. Each part of the postcode is also captured into a capture group as follows: group 1: POSTCODE AREA group 2: POSTCODE DISTRICT group 3: POSTCODE SECTOR group 4: POSTCODE UNIT

email check

checks the email string for valid

PAN CARD validation

checks for valid PAN card for Indian users.

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.

Creditcard expiry date checker

Checks if a expiry date is: mm/yy. You still have to check if it is a valid expiry date timewise.

REGEX Código Postal Pt

Expressão regular para o código postal (postcode) portugês

intl numbers

Good for valid numbers for international currencies - checks for accepted variations for thousands and decimal separators http://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html

ie 11 check

checks for ie 11 user agent

border syntax checker

Checks the css value for a border