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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find PESEL Number (Poland)
Expression
\b[0-9]{2}([0][1-9]{1}|[1][0-2]{1})([0][1-9]{1}|[1][0-9]{1}|[2][0-9]{1}|[3][0-1]{1})\d{5}
Description
The PESEL number is an identification number given to every Polish citizen when they are born and registered in Poland.
Matches
11083197485 | 36110878229 | 00063172200 | 12110383138
Non-Matches
1F083297485 | 36204578229 | AA06317220B | 12203383138
Author Rating: The rating for this expression. Michael Fox
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: One little correcion
Name: Mariusz
Date: 5/6/2022 9:28:59 AM
Comment:
I am not an expert, but still there is one little bug, it won't work with PESEL's after 2000, so it should be: \b[0-9]{2}([0,2,4,8][1-9]{1}|[1][0-2]{1})([0][1-9]{1}|[1,2][0-9]{1}|[3][0-1]{1})\d{5} I've also shorten it a little with first digit of day of birth.


Title: One little correcion
Name: Mariusz
Date: 5/6/2022 9:28:39 AM
Comment:
I am not an expert, but still there is one little bug, it won't work with PESEL's after 2000, so it should be: \b[0-9]{2}([0,2,4,8][1-9]{1}|[1][0-2]{1})([0][1-9]{1}|[1,2][0-9]{1}|[3][0-1]{1})\d{5} I've also shorten it a little with first digit of day of birth.


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