MAC, IDFA, IMEI regular expression

Source: Internet
Author: User

First, Android:

MAC: Serial number, unique value of the device that is connected to the network. denoted by a 16 decimal number, consisting of 0-9,a-f, such as: 44:2a:60:71:cc:82 Uuid

Regular Expressions:

^ ([0-9a-fa-f]{2}) (([/\s:][0-9a-fa-f]{2}) {5}) $

More strictly, there is no space for the delimiter---^ ([0-9a-fa-f]{2}) (([:][0-9a-fa-f]{2}) {5}) $

Second, IOS:
ios<7.0 using MAC Address

1, Idfa:ccd6e1cd-8c4b-40cb-8a62-4bbc7afe07d6

Regular Expressions:

Rlike ' ^ ([0-9a-za-z]{1,}) (([/\s-][0-9a-za-z]{1,}) {4}) $ '

Third, the IMEI: International mobile device Identification code abbreviation, is composed of 15 digits of the "electronic string", the unique value, such as: 351710058880864

Regular Expressions:

Rlike ' ^[0-9]*$ '

^ ([0-9a-fa-f]{2}) ([[0-9a-fa-f]{2}] {5}) $ means no symbol in the middle

MAC, IDFA, IMEI regular expression

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.