Regular Expressions 101

Community Patterns

Finnish SSN (2023 update)

1

Regular Expression
ECMAScript (JavaScript)

/
\d{6}[-+ABCDEFYXWVU]\d{3}[\dA-Z]
/
g

Description

Finnish SSN that supports the new intermediate characters that were added on 1.1.2023.

Source for the new intermediate characters: https://dvv.fi/hetu-uudistus (in Finnish) https://dvv.fi/en/reform-of-personal-identity-code (in English)

Submitted by mpeltola - a year ago