Displaying page
of
pages;
Items to
Title |
Test
Details
UK Postcode
|
Expression |
^(GIR\\s{0,1}0AA|[A-PR-UWYZ]([0-9]{1,2}|([A-HK-Y][0-9]|[A-HK-Y][0-9]([0-9]|[ABEHMNPRV-Y]))|[0-9][A-HJKS-UW])\\s{0,1}[0-9][ABD-HJLNP-UW-Z]{2})$
|
Description |
This regex have been created as per the information provided on http://www.govtalk.gov.uk/gdsc/html/noframes/PostCode-2-1-Release.htm. This expression will allow the postcodes with space or without space.
|
Matches |
GIR 0AA, GIR0AA, M1 1AA, EC1A 1BB
|
Non-Matches |
E14 5LQH
|
Author |
Rating:
Not yet rated.
Debashish Saha
|
Displaying page
of
pages;
Items to