Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

regex cpf 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 :: inject javascript to webpage 
Javascript :: expressjs hello world 
Javascript :: npm ERR! errno ECONNRESET 
Javascript :: javascript document ready 
Javascript :: js for of array with index 
Javascript :: updatedAt 
Javascript :: parsley cdn 
Javascript :: remover o primeiro caracter de uma string javascript 
Javascript :: js today set time 
Javascript :: get index of option in select jquery 
Javascript :: word count js 
Javascript :: javascript iterate object key values 
Javascript :: javascript csv string with commas in fields 
Javascript :: tone mapping three js 
Javascript :: how to position View absolute react native 
Javascript :: angular create component without test 
Javascript :: react function with form 
Javascript :: reversing an array in js 
Javascript :: statements and expressions in js 
Javascript :: javascript random char 
Javascript :: jsconfig alias 
Javascript :: javascript generate random hex 
Javascript :: file input disable open file picker javascript 
Javascript :: rollup is not inlining core-js 
Javascript :: Odoo13 How to open a JSON file and read it Avatar arian_shariat@comp.iust.ac.ir 23 February 2021 odoo 
Javascript :: p5.js script tag 
Javascript :: adding a prototype on vue using nuxt 
Javascript :: javascript close current tab 
Javascript :: jquery get current row value 
Javascript :: js get website short name 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =