Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^[0-9]{4}-[0-9]{3}\b.+$
/

Description

Expressão regular para o código postal (postcode) portugês

Submitted by xsteal - 10 years ago