Original link: JS latest mobile phone number, phone number regular expression
- Mobile number:/^1[34578]\d{9}$/or/^1 (3|4|5|7|8) \d{9}$/;
- Fixed:/^ (\ (\d{3,4}\) |\d{3,4}-|\s) \d{7,14}$/;
- Identity card Regular expression (15-bit):/^[1-9]\d{7} ((0\d) | ( 1[0-2]) (([0|1|2]\d) |3[0-1]) \d{3}$/;
- Identity card Regular expression (18-bit):/^[1-9]\d{5}[1-9]\d{3} ((0\d) | ( 1[0-2]) (([0|1|2]\d) |3[0-1]) \d{4}$/;
- Regular merger of identity cards: (^\d{15}$) | (^\d{17} ([0-9]| X) $);
- To extract information from a network link: (h| H) (r| R) (e| E) (f| F) *= * (' | ')? (\w|\\|\/|\.) + (' | ' | *|>)?;
- Message address in Extract information: \w+ ([-+.] \w+) *@\w+ ([-.] \w+) *\.\w+ ([-.] \w+) *;
- Extract the image link from the information: (s| S) (r| R) (c| C) *= * (' | ')? (\w|\\|\/|\.) + (' | ' | *|>)?;
- Extract the IP address in the information: (\d+) \. (\d+) \. (\d+) \. (\d+);
- Chinese phone numbers (including mobile and landline) in the extraction Information:(\ (\d{3,4}\) |\d{3,4}-|\s)? \d{7,14};
- Extract the information in China Postcode: [1-9]{1} (\d+) {5};
- Chinese identity card number in extracting information: \d{18}|\d{15};
- Extract the Integer in the information: \d+;
- Extract floating-point numbers (that is, decimals) in information: (-?\d*) \.? \d+;
- Extract any number from the information: (-?\d*) (\.\d+)?;
- Extract the Chinese string from the information: [\u4e00-\u9fa5]*;
- Extract the double-byte string in the information (Kanji): [^\x00-\xff]*;
Regular validation collection (mobile phone number, province certificate, email, etc.)