RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
(^(\d{3}.\d{3}.\d{3}-\d{2})|(\d{11})$)
Description
Validação de CPF Brasileiro com ou sem os divisores.
Matches
00000000000 | 123.456.789-98 | 12345678998
Non-Matches
0000.000.000-00
Author Rating: The rating for this expression. Felipe Albacete
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Falta considerar os pontos
Name: Ariane Ferreira
Date: 3/9/2016 8:14:15 AM
Comment:
Testei e não estava validando com pontos, então acertei o if para 14 e foi ^(\d{3}.\d{3}.\d{3}-\d{2})|(\d{14})$


Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials