Regular Expressions 101

Community Patterns

somente telefone

1

Regular Expression
PCRE (PHP <7.3)

/
^(\d{2})(\s?)(9?\d{4})(-?)\d{4}
/
gm

Description

teste para validação de números de telefone

Submitted by Mauricio Rocha - 8 years ago