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-Z]{2}[0-9]{6}[A-DFM]{1}$
Description
UK National Insurance Number (NINO) validation. (The following modifications have been made: Only A to D are permitted as the last letter, and all letters should be in uppercase. For temporary numbers F and M are permitted for female and male holders.)
Matches
AB123456D | AB123456F | AB123456M
Non-Matches
AB123456E | ab123456d
Author Rating: Not yet rated. Peter Whyte
Source Revision of Santosh Potadar's version (http://www.regexlib.com/REDetails.aspx?regexp_id=92)
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: comment
Name: stephen jones
Date: 6/30/2006 10:34:11 AM
Comment:
Not good - do not use for full verification - use only for general format if you're not concerned about a full and proper format. Makes no allowance for: first char must not be D,F,I,O,U or V second char must not be D,F,I,O,Q,U or V 1st two chars must not be GB, BG, NK, TN or ZZ


Title: comment
Name: surya prakash
Date: 11/9/2005 1:06:08 AM
Comment:
ITS nice


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