1
I need to create a input mask (Pattern) for the type CPF 000.000.000-00 and to CNPJ 00.000.000/0000-00 through the plugin jQuery Validation. What would be the regex to be creating this validation?
Note: CPF and CNPJ will be two different inputs.
Grateful.
Do you want to take the test to know if the CPF and CNPJ is valid? or just check if this format? if you want to see if it is valid, it will not be possible, because it follows a calculation algorithm by type checker. It would have to be a function.
– Guilherme Lautert
Hello William, I just want to check if this format.
– Rodrigo Fontes