Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
Python

r"
(^[a-z]{1}\d{4}[a-z]{3}$|^\d{4}$)
"
gmi

Description

validation for Argentina postal codes, previous four digits + new CPA

Submitted by jpaulini - 9 years ago