Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^\(?[1-9]{2}\)?( ?)?([1-9]{1}[0-9]{3}|[0-9]{3}) ?[0-9]{4}$
/
gm

Description

Expressão Regular para Telefone Fixo com ou sem mascara

Submitted by Luis Nt - 3 years ago