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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find International Passport
Expression
^[A-Z0-9<]{9}[0-9]{1}[A-Z]{3}[0-9]{7}[A-Z]{1}[0-9]{7}[A-Z0-9<]{14}[0-9]{2}$
Description
• 9 characters made up of a combination of numbers and/or letters. Where less than 9 characters it will be padded out to the right with chevrons (<). • 1 number • 3 letters • 7 numbers • 1 letter • 7 numbers • An international passport will have up to 14 characters in this field (numbers and/or letters). If none exist or where less than 14 characters exist, the field will be padded out, but only to the right, with chevrons (<). You should input the data exactly as it is shown on the actual passport field, i.e. input all chevrons to the left of the characters and do not ignore or leave these as blank spaces. Where less than 14 characters, the field will be padded out to the right with chevrons (<), i.e. Z1234567<<<<< • 1 number • 1 number
Matches
1234567890ABC1234567A1234567<<<<<<<<<<<<<<12 | 0123456781USD5656564M0812120AS34560<<<<<<<36 | G0308084<<1ITY9999999Q0410056<<<<<<<<<<<<<<39
Non-Matches
ASDFER123AQWE!"%^<<<<<<<<<<<12 | QASASW3<<1WER3as12232<<AS | ABCDEF123AQQQ123456789A1<<<<<AS14
Author Rating: The rating for this expression. Pradeep Dhiman
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: regular expression for india passport number
Name: ram
Date: 3/16/2012 9:01:07 AM
Comment:
hi i want code for passport number regular expression validator


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