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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find CURP (Mexican Code)
Expression
^[a-zA-Z]{4}\d{6}[a-zA-Z]{6}\d{2}$
Description
Simple Expression to evaluate a Mexican CURP Code
Matches
LKHL675728KJDFFD99 | RESL720319HSRYNS00 | RESX720999HSRYNS00
Non-Matches
123LKHL675728KJDFFD99 | RESL720319HSRYANS00 | RESX720999HSRYNS000
Author Rating: Not yet rated. Jose Luis Reyes
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

Title: LA DEFINITIVA CON X
Name: Miguel MAAR
Date: 11/23/2016 5:05:29 PM
Comment:
^[A-Z]{1}[AEIOUX]{1}[A-ZX]{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}$


Title: Curp-acepta mayusculas y minusculas
Name: Diego
Date: 2/11/2014 10:51:23 AM
Comment:
([a-zA-ZñÑ])([aeiouAEIOU])([a-zA-Z]{2})(\d{2})(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])([hmHM])([aA][sS]|([bB]([cC]|[sS]))|([cC]([cc]|[sS]|[hH]|[lL]|[mM]))|([dD]([fF][gG]))|([gG]([tT]|[rR]))|[hH][gG]|[jJ][cC]|([mM]([cC]|[nN]|[sS]))|([nN]([tT]|[lL]))|[oO][cC]|[pP][lL]|([qQ]([tT]|[rR]))|([sS]([pP]|[lL]|[rR]))|([tT]([cC]|[sS]|[lL]))|[vV][zZ]|[yY][nN]|[zZ][sS]|[nN][eE])([a-zA-Z]{3})([a-zA-Z]\d|\d{2})


Title: Este es el mejor
Name: Luis González
Date: 10/22/2013 1:50:47 PM
Comment:
Con esta expresión validas hasta que la fecha sea la correcta espero y les sea de ayuda "^([A-Z][A,E,I,O,U,X][A-Z]{2})(\d{2})((01|03|05|07|08|10|12)(0[1-9]|[12]\d|3[01])|02(0[1-9]|[12]\d)|(04|06|09|11)(0[1-9]|[12]\d|30))([M,H])(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,C,D,F,G,H,J,K,L,M,N,Ñ,P,Q,R,S,T,V,W,X,Y,Z]{3})([0-9,A-Z][0-9])$"


Title: Este es el bueno!!!
Name: Angel Sainz
Date: 9/18/2013 10:49:53 AM
Comment:
Buenas tardes manitos!!! este codigo reguai me va de lujo!!! /^[a-zA-Z]{1}[aseiouAEIOU]{1}[a-zA-Z]{2}\d{2}[01]{1}\d{1}[123]{1}\d{1}[hmHM]{1}(AS|C|BSCC|CS|C|CL|CM|DF|DG|GT|GR|HG|JCMC|MN|MS|NT|NL|OC|PL|QT|QR|SP|SL|SR|TC|TS|TL|VZo|YN|ZS|NE)[^aeiouAEIOU]{3}\d{2}$/


Title: Expresion Regular CURP
Name: Adriel Ruiz
Date: 4/17/2012 3:42:28 PM
Comment:
Excelente Expresion Regular para validar CURP: /^[a-zA-Z]{1}[aeiouAEIOU]{1}[a-zA-Z]{2}\d{2}[01]{1}\d{1}[123]{1}\d{1}[hmHM]{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)[^aeiouAEIOU]{3}\d{2}$/


Title: Expresion Regular CURP
Name: Adriel Ruiz
Date: 4/17/2012 3:40:13 PM
Comment:
Excelente Expresion Regular para validar CURP: /^[a-zA-Z]{1}[aeiouAEIOU]{1}[a-zA-Z]{2}\d{2}[01]{1}\d{1}[123]{1}\d{1}[hmHM]{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)[^aeiouAEIOU]{3}\d{2}$/


Title: Expresion Regular CURP
Name: Adriel Ruiz
Date: 4/17/2012 3:39:13 PM
Comment:
Excelente Expresion Regular para validar CURP: /^[a-zA-Z]{1}[aeiouAEIOU]{1}[a-zA-Z]{2}\d{2}[01]{1}\d{1}[123]{1}\d{1}[hmHM]{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)[^aeiouAEIOU]{3}\d{2}$/


Title: CURP (Mexican Code)
Name: José Reyes Rico Robles
Date: 5/6/2010 2:44:03 PM
Comment:
^[A-Z]{4}\d{6}[HM](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)[A-Z]{3}([A-Z]\d|\d{2})$ (only Mayus)


Title: CURP (Mexican Code)
Name: José Reyes Rico Robles
Date: 5/6/2010 2:38:25 PM
Comment:
^[A-Z]{4}\d{6}[HM](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)[A-Z]{3}([A-Z]\d|\d{2})$ (only Mayus)


Title: CURP (Mexican Code)
Name: José Reyes Rico Robles
Date: 5/6/2010 2:38:06 PM
Comment:
^[A-Z]{4}\d{6}[HM](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)[A-Z]{3}([A-Z]\d|\d{2})$ (only Mayus)


Title: Other
Name: Gustavo Rivera G.
Date: 7/10/2009 9:38:35 PM
Comment:
^[a-zA-Z]{1}[aeiouAEIOU]{1}[a-zA-Z]{2}\d{2}[01]{1}\d{1}[123]{1}\d{1}[hmHM]{1}[a-zA-Z]{2}[^aeiouAEIOU]{3}\d{2}$


Title: DANIEL
Name: DA
Date: 4/27/2009 8:56:30 PM
Comment:
DADA


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