Skip to content

Instantly share code, notes, and snippets.

@andresaquino
Last active May 31, 2024 16:26
Show Gist options
  • Save andresaquino/30679a59e5c4a508789ad5d6550e57f9 to your computer and use it in GitHub Desktop.
Save andresaquino/30679a59e5c4a508789ad5d6550e57f9 to your computer and use it in GitHub Desktop.
REGEX CURP México
5[0-9]{2}[0-9]{2}[A-Z]{1}[AEIOUX]{1}[A-Z]{2}[0-9]{2}(0[1-9]|1[0-2])(0[1-9]|1[0-9]|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}[0-1]{1}[0-9]{2}[0-9]{1}[1-9]{1}[0-9]{3}[0-1][1-9][0-3][0-9][0-9]{3}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment