piighost/au-postal

Australian postal code, anchored on the state or territory abbreviation that precedes it in an address. Four bare digits alone would be unusable: they cut a phone number and a card number into four-digit pieces, which is what the composition check reported before this anchor was added. The span therefore covers the state as well, as the AWS secret key pattern covers its assignment prefix.

Label: AU_POSTAL

Pattern

(?<!\w)(?:NSW|VIC|QLD|WA|SA|TAS|ACT|NT)[\s.]?\d{4}(?!\d)

Must be caught

Must be left alone

Tags: au, location, contact

Download the detector as TOML