Title |
Test
Find
Vaildate a BSN number (Dutch)
|
Expression |
^[0-9]{9}$ |
Description |
Vaildate a 'BurgerServiceNummer' or BSN number (Dutch). |
Matches |
012345678, 123456789 |
Non-Matches |
01234567, 1234567890 |
Author |
Rating:
Not yet rated.
Peter van der Meer
|
Source |
|
Your Rating |
|
Title: Needs improvement
Name: Bram Verspeek
Date: 1/8/2020 12:47:50 PM
Comment:
It allows invalid options for bsn such as:
001234567
Think this would be a better option:
^([0][1-9][0-9]{7}|([1-9][0-9]{8}))$
Title: Imcomplete
Name: Thomas
Date: 12/16/2019 3:18:09 PM
Comment:
Besides the incompletion mentioned by Dick, where he mentions not all 9 digit numbers are valid BSN numbers, some BSN only contain 8 numbers.
Title: Incomplete
Name: Dick
Date: 12/14/2017 2:42:41 PM
Comment:
This regex will only test the length and digit-type (0-9), but not all 9-10 digit numbers are valid BSN numbers (eleven-proof)