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:
How to capture the MSN (Microsoft Network) bot entries from Web log file? Here are some Web log file...
All credit card numbers issued by MasterCard must start with 51 through 55 and have 16 digits. For e...
How to capture the Sogou web spider entries from Web log file? Here are some Web log file entries: 1...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
All credit card numbers issued by JCB have 3 sets of numbers: JCB cards start with 2131 have 15 digi...