Regular Expressions 101

Community Patterns

Community Library Entry

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 - 9 years ago