Regular Expression To Match Argentine Postal Code (CPA)

A regular expression to match postal codes (Código Postal Argentino) in Argentina.

/^([A-HJ-TP-Z]{1}\d{4}[A-Z]{3}|[a-z]{1}\d{4}[a-hj-tp-z]{3})$/

Matches:

  • B1865XAA
  • B1866ATC
  • B1866CDW

Non-matches:

  • 1865
  • B1865