Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
[A-Z][A-Z][A-Z][A-Z][[0-9][[0-9][[0-9][[0-9][[0-9][[0-9][H|M][A-Z][A-Z][A-Z][A-Z][A-Z][0-9][0-9]
"
gm

Description

Regular Expression that searches for CURP standard in Mexico. This is version 1 - 18 positions, with simple validation:``

[A-Z][A-Z][A-Z][A-Z][[0-9][[0-9][[0-9][[0-9][[0-9][[0-9][H|M][A-Z][A-Z][A-Z][A-Z][A-Z][0-9][0-9]

Submitted by anonymous - 5 years ago