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 Sydney CBD, NSW 2000 for the office. → NSW 2000Melbourne office at VIC 3000 since March. → VIC 3000
Must be left alone
Tags: au, location, contact
Download the detector as TOML
Used by
piighost/au — Australia: phone, postal code, the business number and the Medicare number.
Related patterns
piighost/ar-phone — Argentine phone number, the +54 country code or the 0 trunk prefix then ten or eleven digits.
piighost/ar-postal — Argentine CPA postal code: a province letter, four digits for the town, then three letters for the block side.
piighost/at-phone — Austrian phone number, the +43 country code or the 0 trunk prefix then six to thirteen digits, since Austrian…
piighost/au-abn — Australian business number: eleven digits written in groups of two then three, three, three.
piighost/au-driving-licence — Australian driver licence number.
piighost/au-medicare — Australian Medicare number: ten digits in the groups the card prints, sometimes followed by the individual reference…
← piighost/au-phone · All patterns in the catalogue · piighost/aws-access-key →