Displaying page
of
pages;
Items to
|
Title |
Test
Details
Pattern Title
|
|
Expression |
^([A-Z]{1,2}[0-9]{1,2}|[A-Z]{3}|[A-Z]{1,2}[0-9][A-Z])( |-)[0-9][A-Z]{2}
|
|
Description |
Checks whether the string specified is in the same format as the UK postcode format defined on:
http://www.magma.ca/~djcl/postcd.txt
It allows:
A = Letter
N = Number
AN NAA, ANA NAA, ANN NAA, AAN NAA, AAA NAA (rare), AANN NAA, AANA NAA
It gives the option to have the two parts of the uk postcode to be separated by a space or a hyphen.
(restriction is set to all-capitals)
|
|
Matches |
AA11 1AA | AA1A 1AA | A11-1AA
|
|
Non-Matches |
111 AAA | 1AAA 1AA | A1AA 1AA
|
|
Author |
Rating:
Henk de Vries -op regexlib.com-
|
|
Title |
Test
Details
Pattern Title
|
|
Expression |
^(F-)?((2[A|B])|[0-9]{2})[0-9]{3}$
|
|
Description |
Postcode check for France (including colonies)
-----
Edited; sorry I didn't know about Corsica, no offense :)
|
|
Matches |
12345 | F-12345 | F-2B100
|
|
Non-Matches |
F12345 | F-123456 | 123456
|
|
Author |
Rating:
Henk de Vries -op regexlib.com-
|
Displaying page
of
pages;
Items to