Created
February 26, 2022 15:20
-
-
Save macarthuror/fb2039274d3d20ea374663e3d50ba91d to your computer and use it in GitHub Desktop.
Regex CURP - RFC
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
RFC (con y sin homoclave) | |
/^[A-Z]{1}[AEIOU]{1}[A-Z]{2}[0-9]{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])([A-Z0-9]{3})?$/ | |
CURP | |
/^[A-Z]{1}[AEIOU]{1}[A-Z]{2}[0-9]{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])[HM]{1}(AS|BC|BS|CC|CS|CH|CL|CM|DF|DG|GT|GR|HG|JC|MC|MN|MS|NT|NL|OC|PL|QT|QR|SP|SL|SR|TC|TS|TL|VZ|YN|ZS|NE)[B-DF-HJ-NP-TV-Z]{3}[0-9A-Z]{1}[0-9]{1}$/ | |
Más información en: | |
- https://es.wikipedia.org/wiki/Registro_Federal_de_Contribuyentes | |
- https://es.wikipedia.org/wiki/Clave_%C3%9Anica_de_Registro_de_Poblaci%C3%B3n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment