Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to validate a passport? [closed]

Tags:

validation

Well I have been asked to validate passport numbers (the documents used on airports to travel to other countries).

My question is: What format are these "numbers"? All I know is that they can have letters but I am not finding any place defining the rules. Any pointers/Links?

like image 234
Sergio Avatar asked Nov 04 '09 14:11

Sergio


People also ask

How do I know if my passport is invalid?

You can call National Passport Information Center at 1-877-487-2778 and request that a specialist verify the status of your passport. Most likely though, if you already submitted the DS-64 online, then it is invalid in the system.

What is validate in passport?

The valid passport number of India must satisfy the following conditions: It should be eight characters long. The first character should be an upper case alphabet. The next two characters should be a number, but the first character should be any number from 1-9 and the second character should be any number from 0-9.

How can I check my passport details?

You need to send an SMS on 9704100100 to check the passport status using my mobile number. You need to mention 15 digit alphanumeric file number, issued after the successful submission of passport application at the time of document verification at a Passport Seva Kendra or passport camp in the SMS.


1 Answers

I don't think you're going to be able to do this without restricting yourself to certain issuing countries. If you look at the specs of machine readable passports:

http://www.highprogrammer.com/alan/numbers/mrp.html

It says that each country is free to use any format it likes for the actual passport number (including letters or digits). Although in the machine readable schema these seem to be limited to 9 characters (which might cause problems for countries with billions of citizens if they were to just use digits!)

like image 61
UpTheCreek Avatar answered Sep 18 '22 16:09

UpTheCreek