How to validate a passport? [closed]Validate decimal numbers in JavaScript - IsNumeric()How to validate an email address in JavaScript?A comprehensive regex for phone number validation(Built-in) way in JavaScript to check if a string is a valid numberHow to validate an email address using a regular expression?Struts2 Validation at the action vs domain object levelHow does the SQL injection from the “Bobby Tables” XKCD comic work?What is the maximum length of a valid email address?i18n ValidationsHow to validate identity document numbers (passport, id card)?

Math PhD in US vs Master + PhD in Europe

How do I find and plot the intersection of these three surfaces?

Do 3D printers really reach 50 micron (0.050mm) accuracy?

Zombie diet, why humans?

What speedlites can work with the Canon EOS 4000D's non-standard hotshoe?

Procedurally generate regions on island

For people who believe in Jesus and not the devil, what happend in the desert?

Spicket or spigot?

When is it ok to add filler to a story?

ArcGIS Intersect Tool not splitting lines as expected?

Why is Madam Hooch not a professor?

How would a order of Monks that renounce their names communicate effectively?

Children's short story about material that accelerates away from gravity

Why do I have to press the shutter button twice on my Canon 6d Mark II?

Why does the numerical solution of an ODE move away from an unstable equilibrium?

Wilcoxon signed rank test – critical value for n>50

How to assign a Python list to a vim variable and escape its strings correctly

Golf the smallest circle!

“Faire” being used to mean “avoir l’air”?

Is なきにしもあらず~なきに a set phrase?

Set vertical spacing between two particular items

What shortcut does ⌦ symbol in Camunda macOS app indicate and how to invoke it?

Why isn’t the tax system continuous rather than bracketed?

Analog is Obtuse!



How to validate a passport? [closed]


Validate decimal numbers in JavaScript - IsNumeric()How to validate an email address in JavaScript?A comprehensive regex for phone number validation(Built-in) way in JavaScript to check if a string is a valid numberHow to validate an email address using a regular expression?Struts2 Validation at the action vs domain object levelHow does the SQL injection from the “Bobby Tables” XKCD comic work?What is the maximum length of a valid email address?i18n ValidationsHow to validate identity document numbers (passport, id card)?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








26















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?










share|improve this question















closed as off-topic by Machavity, Pearly Spencer, Madhur Bhaiya, Jim Garrison, jww Nov 3 '18 at 17:59


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – Machavity, Pearly Spencer, Madhur Bhaiya, Jim Garrison, jww
If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1





    I guess the rules a different for different countries.

    – Andrey Adamovich
    Nov 4 '09 at 14:11











  • Sorry for the VTC. +1 for asking the question.

    – jww
    Nov 3 '18 at 18:00

















26















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?










share|improve this question















closed as off-topic by Machavity, Pearly Spencer, Madhur Bhaiya, Jim Garrison, jww Nov 3 '18 at 17:59


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – Machavity, Pearly Spencer, Madhur Bhaiya, Jim Garrison, jww
If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1





    I guess the rules a different for different countries.

    – Andrey Adamovich
    Nov 4 '09 at 14:11











  • Sorry for the VTC. +1 for asking the question.

    – jww
    Nov 3 '18 at 18:00













26












26








26


5






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?










share|improve this question
















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?







validation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 5 '12 at 14:17









James Moore

1,8936 gold badges22 silver badges28 bronze badges




1,8936 gold badges22 silver badges28 bronze badges










asked Nov 4 '09 at 14:06









SergioSergio

6,30410 gold badges40 silver badges74 bronze badges




6,30410 gold badges40 silver badges74 bronze badges




closed as off-topic by Machavity, Pearly Spencer, Madhur Bhaiya, Jim Garrison, jww Nov 3 '18 at 17:59


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – Machavity, Pearly Spencer, Madhur Bhaiya, Jim Garrison, jww
If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by Machavity, Pearly Spencer, Madhur Bhaiya, Jim Garrison, jww Nov 3 '18 at 17:59


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – Machavity, Pearly Spencer, Madhur Bhaiya, Jim Garrison, jww
If this question can be reworded to fit the rules in the help center, please edit the question.







  • 1





    I guess the rules a different for different countries.

    – Andrey Adamovich
    Nov 4 '09 at 14:11











  • Sorry for the VTC. +1 for asking the question.

    – jww
    Nov 3 '18 at 18:00












  • 1





    I guess the rules a different for different countries.

    – Andrey Adamovich
    Nov 4 '09 at 14:11











  • Sorry for the VTC. +1 for asking the question.

    – jww
    Nov 3 '18 at 18:00







1




1





I guess the rules a different for different countries.

– Andrey Adamovich
Nov 4 '09 at 14:11





I guess the rules a different for different countries.

– Andrey Adamovich
Nov 4 '09 at 14:11













Sorry for the VTC. +1 for asking the question.

– jww
Nov 3 '18 at 18:00





Sorry for the VTC. +1 for asking the question.

– jww
Nov 3 '18 at 18:00












2 Answers
2






active

oldest

votes


















25














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!)






share|improve this answer




















  • 2





    What you are saying is right, but those passports that I saw until now, all consist of one alphabet and 8 digits (9 in total) which caters for about 2.6 billion population. On the other hand China (biggest population) uses passport numbers consist of 9 numbers. may be because they don't expect every Chinese travel the world?

    – AaA
    Oct 29 '13 at 2:41


















7














I would expect the format to depend on the issuing country.



UK passport numbers consist of 9 digits but used to consist of 6 digits and a letter.






share|improve this answer































    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    25














    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!)






    share|improve this answer




















    • 2





      What you are saying is right, but those passports that I saw until now, all consist of one alphabet and 8 digits (9 in total) which caters for about 2.6 billion population. On the other hand China (biggest population) uses passport numbers consist of 9 numbers. may be because they don't expect every Chinese travel the world?

      – AaA
      Oct 29 '13 at 2:41















    25














    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!)






    share|improve this answer




















    • 2





      What you are saying is right, but those passports that I saw until now, all consist of one alphabet and 8 digits (9 in total) which caters for about 2.6 billion population. On the other hand China (biggest population) uses passport numbers consist of 9 numbers. may be because they don't expect every Chinese travel the world?

      – AaA
      Oct 29 '13 at 2:41













    25












    25








    25







    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!)






    share|improve this answer















    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!)







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Dec 13 '12 at 15:37

























    answered Nov 4 '09 at 14:16









    UpTheCreekUpTheCreek

    16.2k31 gold badges134 silver badges207 bronze badges




    16.2k31 gold badges134 silver badges207 bronze badges







    • 2





      What you are saying is right, but those passports that I saw until now, all consist of one alphabet and 8 digits (9 in total) which caters for about 2.6 billion population. On the other hand China (biggest population) uses passport numbers consist of 9 numbers. may be because they don't expect every Chinese travel the world?

      – AaA
      Oct 29 '13 at 2:41












    • 2





      What you are saying is right, but those passports that I saw until now, all consist of one alphabet and 8 digits (9 in total) which caters for about 2.6 billion population. On the other hand China (biggest population) uses passport numbers consist of 9 numbers. may be because they don't expect every Chinese travel the world?

      – AaA
      Oct 29 '13 at 2:41







    2




    2





    What you are saying is right, but those passports that I saw until now, all consist of one alphabet and 8 digits (9 in total) which caters for about 2.6 billion population. On the other hand China (biggest population) uses passport numbers consist of 9 numbers. may be because they don't expect every Chinese travel the world?

    – AaA
    Oct 29 '13 at 2:41





    What you are saying is right, but those passports that I saw until now, all consist of one alphabet and 8 digits (9 in total) which caters for about 2.6 billion population. On the other hand China (biggest population) uses passport numbers consist of 9 numbers. may be because they don't expect every Chinese travel the world?

    – AaA
    Oct 29 '13 at 2:41













    7














    I would expect the format to depend on the issuing country.



    UK passport numbers consist of 9 digits but used to consist of 6 digits and a letter.






    share|improve this answer



























      7














      I would expect the format to depend on the issuing country.



      UK passport numbers consist of 9 digits but used to consist of 6 digits and a letter.






      share|improve this answer

























        7












        7








        7







        I would expect the format to depend on the issuing country.



        UK passport numbers consist of 9 digits but used to consist of 6 digits and a letter.






        share|improve this answer













        I would expect the format to depend on the issuing country.



        UK passport numbers consist of 9 digits but used to consist of 6 digits and a letter.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 4 '09 at 14:17









        dave4420dave4420

        41.2k6 gold badges99 silver badges136 bronze badges




        41.2k6 gold badges99 silver badges136 bronze badges













            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현