My lazy Google search reveals that the top postal code library is also a little lazy with how they do regex. There ought to be a community go-to place for contributing precise rules.
Let's try here.
- Country codes are defined by ISO 3166-1 alpha-3.
code | about |
---|---|
@ |
letter |
# |
number |
* |
letter or number |
|
space |
- |
dash |