Regular Expressions 101

Community Patterns

Community Library Entry

4

Regular Expression
PCRE (PHP <7.3)

/
(?i)(^[a-hj-np-z][\d]{4}[a-z]{3}$|^[\d]{4}$)
/
gm

Description

Validates the two valid postal codes in Argentina

Submitted by Agustín Bouillet - 9 years ago