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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

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: The rating for this expression. Peter van der Meer
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: 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)


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