How to match the ID card in the text

how to match the ID card in the text.
for example, there is such a text: Satan law 362528199307213023 judicial office express fee for a good sofa in degrees Celsius
then how can I know that there is an ID card number in this text?
ask for help, or give me some ideas. I tried match and didn"t get the results I wanted

Jun.02,2021

text ID card number bank card number quick identification


'< Satan law 362528199307213023 express fee '.match (/ (\ d {18} |\ d {15}) / g)

the Satan law sent by sand 123456789012345678 at 123456789012345678.

clipboard.png

distinguish between rougher digits

Menu