Last active
August 4, 2016 21:50
-
-
Save juanjosezg/ed3c4f139210a7cd39a839d2de278060 to your computer and use it in GitHub Desktop.
Valida RFC EMPRESA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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