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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Finnish social security number
Expression
^[0-9]{6}-(?:[0-9]+){1,3}[0-9A-Za-z]$
Description
This one is for Finnish social security numbers. I tested it with my own Java Application by checking several real world SSNs
Matches
010236-987B, 241200-6667
Non-Matches
010236987B, 2412000-6667,241200-A666
Author Rating: The rating for this expression. Jere Sumell
Source Sumell
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: Try this
Name: Piros
Date: 3/17/2021 10:16:15 AM
Comment:
/^[0-9]{6}[-,A,+]{1}(?:[0-9]+){1,3}[0-9A-Za-z]$/;


Title: Does not work
Name: Dosentti
Date: 6/19/2018 6:42:11 AM
Comment:
Does not work to social security numbers of people who have born after the year 2000. This is because dash should be replaced with capital A.


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