Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

regex cnpj javascript

CPF
/^d{3}.d{3}.d{3}-d{2}$/


CNPJ
/^d{2}.d{3}.d{3}/d{4}-d{2}$/

both
/(^d{3}.d{3}.d{3}-d{2}$)|(^d{2}.d{3}.d{3}/d{4}-d{2}$)/
Comment

regex cnpj javascript

CPF
/^d{3}.d{3}.d{3}-d{2}$/


CNPJ
/^d{2}.d{3}.d{3}/d{4}-d{2}$/

both
/(^d{3}.d{3}.d{3}-d{2}$)|(^d{2}.d{3}.d{3}/d{4}-d{2}$)/
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript not null 
Javascript :: express js example 
Javascript :: npm ERR! 503 Service Unavailable: npm@latest 
Javascript :: document ready javacsript 
Javascript :: center horizontally react native 
Javascript :: createdAt 
Javascript :: get all values of a select javascrip 
Javascript :: jquery set max attribute value 
Javascript :: foreach element in class javascript 
Javascript :: create json string c# 
Javascript :: js parse url decode 
Javascript :: reinitialize datatable on button click 
Javascript :: es6 
Javascript :: how to hide nav from login in next js 
Javascript :: javascript degree to radians 
Javascript :: import jquery into angular 8 
Javascript :: set dropdown value using jquery 
Javascript :: javascript date difference in months 
Javascript :: JS class for each 
Javascript :: jquery get value name uploaded file 
Javascript :: js style remove property 
Javascript :: mm dd yyyy how to get date in this format in javascript 
Javascript :: how to find the width of outerconatiner in react native 
Javascript :: js exec iterate all matches 
Javascript :: jquery how to fnd id 
Javascript :: jquery select radio 
Javascript :: javascript convert string to float with 2 decimal places 
Javascript :: js get all iframes 
Javascript :: nodejs btoa 
Javascript :: nodejs sharp resize to max width or height 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =