Skip to content

Instantly share code, notes, and snippets.

@juanjosezg
Last active August 4, 2016 21:50
Show Gist options
  • Save juanjosezg/ed3c4f139210a7cd39a839d2de278060 to your computer and use it in GitHub Desktop.
Save juanjosezg/ed3c4f139210a7cd39a839d2de278060 to your computer and use it in GitHub Desktop.
Valida RFC EMPRESA
function RfcEmpresa(rfcStr) {
var re = /^(([A-Za-z]){3})([0-9]{6})(([A-Z]|[a-z]|[0-9]){3})$/;
var str = rfcStr;
if(re.test(str) ==true){
return true;
}else{
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment