0

I need to validate postcodes (called eircodes) for the Republic of Ireland.

For the UK I used the regex /^(GIR|[A-Z]\d[A-Z\d]??|[A-Z]{2}\d[A-Z\d]??)[ ]??(\d[A-Z]{2})$/. I don’t know whether this also applies to Republic of Ireland or whether it have its own specific regex.

TRiG
  • 10,148
  • 7
  • 57
  • 107
John
  • 837
  • 3
  • 14
  • 34

0 Answers0