Thorough UK Postcode Validator with In/Out code capture groups

Published on Tue Mar 01 2022

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.

Additional matching regexes for
Thorough UK Postcode Validator with In/Out code capture groups

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.

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

REGEX Código Postal Pt

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

Regex Capture String

Capture out Parts using regular expressions

SFTP or FTP url

Parse an SFTP or FTP url and brak it into named capture groups.

grub options matching

Trying to match grub options in capture groups, some of which are known

Split address line into street name and house number

This regular expression splits an address line like for example "1117 Franklin Blvd" into the street name and house number. It also supports addresses where street name and house number are the other way around (e.g. "Mustermannstr. 1"). Furthermore, this regular expression also supports address lines where additional information is given that is neither a street name nor a house number (e.g. "3940 Radio Road, Unit 110", "Pallaswiesenstr. 57 App. 235", "Suite 1500, 802 Docklands Street"). The regular expression has 8 capture groups in total. The first 4 capture groups get used when the house number precedes the street name. The names of these capture groups are prefixed with "A_". If the house number succeeds the street name, the last 4 capture groups are used. These are prefixed with "B_".

Roman numeral detector

Detects valid Roman numerals (up to 3999), and splits into 4 capture groups: thousands, hundreds, tens, and units.

North American Phone Number

Validate **North American** **phone numbers** with capture groups for the **Area Code**, **Exchange Code**, **Line Number**, and **Extension**.

masked phone input validator

masked phone input validator