Other Resources:
Validating United Kingdom postcodes
How to write a regular expression to validate United Kingdom postcodes?
For example, EC1A 1BB is a valid UK postcodes.
✍: Guest
Here is the regular expression to validate United Kingdom postcodes:
[A-Z]{1,2}\d[A-Z\d]? \d[ABD-HJLNP-UW-Z]{2}
[A-Z]{1,2} - 1 or 2 letters
\d - A digit
[A-Z\d]? - An optional letter or digit
- A space
\d - A digit
[ABD-HJLNP-UW-Z]{2} - Any 2 letters except CIKMOV
2013-01-29, 0👍, 0💬
Popular Posts:
All credit card numbers issued by American Express must start with 34 or 37 and have 15 digits. For ...
A free online regular expression test tool that allows to try you regular expression pattern and see...
A free online regular expression test tool that allows to try you regular expression pattern and see...
How to capture the Baidu spider entries from Web log file? Here are some Web log file entries: 127.0...
All credit card numbers issued by Diners Club must start with 300 through 305, 36 or 38 and have 14 ...