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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
[1-2][0|9][0-9]{2}[0-1][0-9][0-3][0-9][-][0-9]{4}
Description
Swedish person number. Don't work on persons older then 100 years, but they are so few that it shouldn't be a problem. Easy to fix, but I choose not to accept oldies...
Matches
19740609-7845 | 19811116-7845 | 20010913-7598
Non-Matches
21003612-9999 | 18790505-4545 | 19740641-5559
Author Rating: Not yet rated. Tomas Axelsson
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: swedish person number
Name: Per Halvarsson
Date: 11/22/2004 4:47:57 AM
Comment:
You should take a look att this regex for the first part of your regex. http://www.regexlib.com/REDetails.aspx?regexp_id=651


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