Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
PCRE (PHP <7.3)

/
^(?P<CP>\d{4}[\-\ ]?\d{3})$
/
gm

Description

Verifica Código Postal [Portugal]

Submitted by anonymous - 5 years ago