Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,12 @@ Sources:



## Note on Postcode Validation
## Postcode Verification

Postcodes cannot be validated just with a regular expression. Proper postcode validation requires having a full list of postcodes to check against. Relying on a regex will produce false postives/negatives.

A complete list of Postcodes can be obtained from the ONS Postcode Directory, which is updated every 3 months.
Postcodes can only be validated using pattern matching, such as regular expressions. Accurate postcode verification would require having a full list of postcodes to check against.

A complete list of Postcodes can be obtained from the [ONS Postcode Directory](https://en.wikipedia.org/wiki/ONS_Postcode_Directory), which is updated every 3 months.

## License

Code released under [the MIT license](https://github.com/vasildakov/postcode/blob/master/LICENSE)
Code released under [the MIT license](https://github.com/vasildakov/postcode/blob/master/LICENSE)