Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^[a-zA-Z]{1,2}[0-9][0-9A-Za-z]{0,1} {0,1}[0-9][A-Za-z]{2}$
|
Description |
Matches UK postcodes according to the following rules
1. LN NLL eg N1 1AA
2. LLN NLL eg SW4 0QL
3. LNN NLL eg M23 4PJ
4. LLNN NLL eg WS14 0JT
5. LLNL NLL eg SW1N 4TB
6. LNL NLL eg W1C 8LQ
Thanks to Simon Bell for informing me of LNL NLL rule for postcodes which I had omitted in an earlier version.
|
Matches |
G1 1AA | EH10 2QQ | SW1 1ZZ
|
Non-Matches |
G111 1AA | X10 WW | DDD 5WW
|
Author |
Rating:
Not yet rated.
Dave Sparks
|
Displaying page
of
pages;
Items to