Skip to content

arvinjarvin/UK-Postcode-Validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postcode Validator

This is a postcode validator for the United Kingdom in progress.

It works simply via a while loop and some validation.

Validation Criteria

Available Postcode Formats:

AN NAA
ANN NAA
AAN NAA
AANN NAA
ANA NAA
AANA NAA

Where A is an alpha character, and N is a numeric character.

  • The letters Q, V, and V can't be used in the first position
  • The letters I, J and Z can't be used in the second position
  • The only letters which can be present in the third position are A, B, C, D, E, F, G, H, J, K, S, T, U, and W.
  • The second half of the postcode will consistently follow the format, 'NAA'
  • The letters C, I, K, M, O, and V are not used in the second half.

About

Simple C++ postcode validator for postcodes in the UK.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published