RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Validate CURP regex
Expression
^[A-Z]{1}[AEIOUX]{1}[A-Z]{2}((\d{2}((0[13578]|1[02])(0[1-9]|[12][0-9]|3[01])|(0[13-9]|1[0-2])(0[1-9]|[12][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8])))|([02468][048]|[13579][26])0229)[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]$
Description
This regular expression is used to check the correct input of Mexican CURP, this regex has been modified over the years to correct some bugs. Esta expresión regular la uso para checar la captura de curp en un sistema donde es utilizada como llave universal y se ha actualizado para arreglar pequeños errores como X en el segundo caracter y que la fecha de nacimiento sea valida.
Matches
CUJM540331MZSNRX09 | SASD760229HDFNRV04 | PXTA920430HSLNRN02
Non-Matches
FRJU450324HBSKJD09 | POLO530229MJCJWSD04 | LOOR540932MOCKLD00
Author Rating: The rating for this expression. Héctor Cunningham
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials