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{2}.\d{3}.\d{3}/\d{4}-\d{2})|(\d{14})$)
Description
Expressão para a Validação do CNPJ contendo ou não os caracteres de separação . e /.
Matches
00.000.000/0000-00 | 00000000000000
Non-Matches
000.000.000/0000-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: Trying to have less false positives
Name: Improve Regex
Date: 9/27/2008 10:43:00 AM
Comment:
Ola Felipe, Quando eu testo esta expressao regular contra 16 numeros ele ainda traz um partial matching. Como eu poderia limitar somente a um total de 14 numeros. Sendo superior a isso nao daria um matching. Abs,


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