Js regular judgment of the ID card number after 00 all points need to be improved to judge is there?

problem description

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?


/^\d{6}2\d{3}\d{8}$/

'333333200033333333'.match(/\d{6}(\d{4})/)[1];

/\d{6}2000\d{4}[\dx]{4}/

just judge whether the seventh place is 2

Menu