Regular expression to validate a series of Soviet and Russian passports at the same time?

Actually there are two questions in one might look like a series of Soviet passport and how to check it? The user can enter in the field series as Soviet passports, and Russian.
October 8th 19 at 03:19
2 answers
October 8th 19 at 03:21
Regarding the Soviet passport:

A series of Soviet passports of the sample of 1974 consists of Roman numerals (from I to XXXIII) and two uppercase letters. The numbers reflect the sequence of issuing passports. The letters are the region code. Each region has its own code. In Moscow for example is MJ and SB, in the Krasnodar region — AG and TM, in the Kirov region — IR, etc. This does not mean that Muscovites can not be Kirov passports and Vice versa (it is necessary to take into account the migration factor), but if in Moscow the signature sheets go entirely Kirov Krasnodar or series, it should alert the controller.

All rooms of passports of the USSR are in the range of numbers 500 000-750 000. If You get a passport with other rooms — it's either a typo or an outright fake. Stitching is rejected in any case and petitions the collector subject to partial inspection.
October 8th 19 at 03:23
The regular season may be this:
Or this:

Wrote on the knee, you need to check =)
If the place of use is very sensitive to the input data, it is Roman numbers and Russian letters will need to check more accurately. - jany36 commented on October 8th 19 at 03:26

Find more questions by tags Regular expressions