I'm using the jQuery Validation Engine with translations file for Portuguese. I have added the following line to the JavaScript:
"cpf": {
"regex": /^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/,
"alertText": "* CPF inválido"
}
Class="validate[required,custom[cpf]]
But this validation is not very efficient, since it only checks the number of characters.
How can I make a method to validate the CPF and continue using Validation Engine in this way?