Regular Expressions 101

Community Patterns

1...45678...901

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 - 8 years ago