Regular Expression of phone number (mobile phone number, 3-4 area code, 7-8 live video number, 1-4 extension code)
(\ D {11}) | ^ (\ d {7, 8}) | (\ d {4} | \ d {3})-(\ d {7, 8 }) | (\ d {4} | \ d {3})-(\ d {7, 8 }) -(\ d {4} | \ d {3} | \ d {2} | \ d {1}) | (\ d {7, 8 }) -(\
JS mobile phone number, zip code, area code, ID card Verification program
Mobile phone Number Inquiryfunction Checkmobile () {var smobile = Document.mobileform.mobile.valueif (!) ( /^13[0-9]d{4,8}$/.test (Smobile))) {Alert ("Please enter your mobile number (at least the fir
This article describes how to generate a mobile phone number based on the area code in Python, and describes how to use Python random numbers and strings, for more information, see the following example. Share it with you for your reference. The specific implementation method is as follows:
# _ * _ Coding: UTF-8 _ * _ # xiaohei. python. seo. call. me :) # wi
phone number you entered is incorrect. Use-to separate the area code from the phone number); document. form. phone. focus (); return false ;}} if (document. form. UserMobile. value! = "") {Var mobile = document. form. userMobile. value; var reg =/^ \ d {, }$/; var reg =/^ \
Mobile phone number and phone number legality verification code:In some website phone number and mobile phone number are required, or need to fill in one of them, in order to enhance the authenticity of the site also improve the user experience, generally need to do format validation, the following is an excerpt from t
Mobile phone number and phone number legality verification code:In some website phone number and mobile phone number are required, or need to fill in one of them, in order to enhance the authenticity of the site also improve the user experience, generally need to do format validation, the following is an excerpt from t
The free api code of the mobile phone number attribution query, and the mobile phone number attribution api
Query the user's card type, carrier, region, and other information based on the mobile phone number.
Mobile phone home entity
Package org. wx. xhelper. model;/*** mobi
This article mainly introduces the JS code to verify the phone number and phone number is legitimate, mobile phone number and phone number in some sites are required, in order to improve the user experience, the general to verify the legality, the specific
The earlier interview was asked what the scanning use of the Zbar, and then asked why not the original, more efficient ah, saying that just started to achieve, do not seek efficiency, also do not know how to answer. Now in retrospect, the best answer is: Need to scan the album, the original implementation is not AH.Zbar Advantages: You can achieve photo scanning of albums But the efficiency is a little low.Native: High efficiency, but unable to do photo album scanning.Put the
status:Buttons Code Test function/Name* #9999 # display the mobile phone software version* 2767*2878 # reset currently set for phone (unlock mobile phone)* 2767*3855 # Total reset of phone EEPROM (repair software fault)* #9998*228 # Battery parameter reading* #9998*289 # te
[Code Note] mobile phone number verification, note mobile phone number verification
Code:
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. // The output value 1 or 0.1 is YES, and 0 is NO NSLog (@ "-------- % I --", [self validateMobile: @ "1393241"]);} # pragma-mark-verify t
The following is the code for verifying the phone number in JS. It is very practical and is the first code for everyone:
The Code is as follows:
Function Checkreg (){// Verify the phone number, including the phone number 153,15
Example
The code is as follows
Copy Code
var tel = 18767802354;var reg =/^0?1[3|4|5|8][0-9]\d{8}$/;if (Reg.test (tel)) {Alert ("Correct number ~");}else{Alert ("Wrong number ~");};
Match the phone number at the beginning of 13,14,15,18!
Example
Verify mobile phone Number one
Use: Determine the cell phone number in the input box
Input: S: string(1) The telephone number shall consist of numbers, "(") "and"-"(2) Phone number is 3 to 8 digits(3) If the phone number contains an area code, then the area
I found a lot of regular expressions for mobile phone number verification on the Internet, but they are not comprehensive. Today I verified the regular expressions for mobile phone number verification in 153, but the Verification Failed. Now I have reorganized some of the latest Regular Expressions for mobile phone number verification, for more information, see.
According to the mobile phone number to query the user's card type, operator, attribution, region and other information.Mobile phone attribution to entity classPackage org.wx.xhelper.model;/** * Phone Attribution * @author WANGXW * @version 1.0 * @date Jul 9, 4:03:04 PM */public class Pho Nebelong {//Phone number priv
This three verification phone number of JS code, can only sit machine, can not verify the mobile phone number, of course, the site provides a large number of mobile phone number verification examples and articles Oh,function Checkphone (phone){Verify the
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.