18-digit ID card regular

Source: Internet
Author: User
Provides various official and user-released code samples for reference. You are welcome to learn how to match your 18-digit ID card number.
$ Preg5 = '/^ (1 [1-5] {1} [0-2] {1} | 2 [1-3] {1} [0-2] {1} | 3 [0-2] {1} [0-1] {1 }) [0-9] {1} [0-8] {1} [0-9] {1} (19 [0-9] {2 }| 200 [0-9] {1} | 201 [0-5] {1 }) (01 | 03 | 05 | 07 | 08 | 10 | 12) {0, 1} (0 [1-9] {1} | [1-2] {1} [0-9] {1} | 3 [0-1] {1}) | (04 | 06 | 09 | 11) (0 [1-9] {1} | [1-2] {1} [0-9] {1} | 30) | 02 (0 [1-9] {1} | [1-2] {1} [0-9] {1 })) [0-9] {3} [0-9xX] {1} $/'; the ID card number of 15 digits is not determined for a leap year. If there is a vulnerability or you are advised to raise it

AD: truly free, domain name + VM + enterprise mailbox = 0 RMB

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.