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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[A-Za-z]{2}[0-9]{6}[A-Za-z]{1}$
Description
UK National Insurance Number validation. Especially useful to validate through clientside/server side script on a website.
Matches
SP939393H | PX123456D | SW355667G
Non-Matches
12SP9393H | S3P93930D | 11223344SP00ddSS
Author Rating: The rating for this expression. Santosh Potadar
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: Error strewn
Name: PoloMint
Date: 3/12/2010 7:44:49 AM
Comment:
Apart from a basic string search, this is incorrect. Allowable letters at the end only A-D. As before, avoid


Title: Error strewn
Name: PoloMint
Date: 3/12/2010 5:31:06 AM
Comment:
Apart from a basic string search, this is incorrect. Allowable letters at the end only A-D. As before, avoid


Title: Error strewn
Name: PoloMint
Date: 3/12/2010 5:22:28 AM
Comment:
Apart from a basic string search, this is incorrect. Allowable letters at the end only A-D. As before, avoid


Title: Very poor
Name: Stephen Jones
Date: 6/30/2006 10:40:06 AM
Comment:
This should not be used to make any proper NINO validation. None of the requirements have been met bar a very basic layout. For instance, where is the check that the last char should be only chars A-D? Avoid.


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