Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(\d{3})(\d{3})(\d{3})(\d{2})
/

Description

Retorna um cpf no formato 123.456.789-11. Cpf de entrada deve conter apenas nĂºmeros

Submitted by anonymous - 7 years ago