China Mobile 134.135.136.137.138.139.150.151.152.157.158.159.187.188, 147 (data card)
China Unicom 130.131.132.155.156.185.186
China Telecom 133.153.180.189
CDMA 133,153
The following are:
Copy Code code as follows:
Matching mobile phone number
Public Const string pattern_cmcmobilenum = @ "^1 (3[4-9]|5[012789]|8[78]) \d{8}$";
Matching Telecom
(China mainland Mobile 134,135,136,137,138,139,150,151,157,158,159 number section, China Unicom's 130,131,132,133,153,155,156 number segment and the Chinese telecom 3G mobile phone number paragraph 188, China netcom 3G Mobile phon
Old style, no more nonsense to say, directly to everyone paste Java code.
The code is as follows:
Package Com.zzw.getPhoneInfos;
Import android.app.Activity;
Import Android.content.Context;
Import Android.os.Build;
Import Android.os.Bundle;
Import Android.telephony.TelephonyManager;
Import Android.util.Log; public class Mainactivity extends activity {@Override protected void onCreate (Bundle savedinstancestate) {super.
OnCreate (savedinstancestate);
Setcontentview (R.layout.activit
There are currently 27 mobile phone number segments nationwide.There are 16 segments on the move: 134, 135, 136, 137, 138, 139, 147, 150, 151, 152, 157, 158, 159, 182, 187, 188. 147, 157, 188 is the 3G, the other is the 2G number segment.China Unicom has 7 types of segments: 130, 131, 132, 155, 156, 185, 186. 186 is the 3G (WCDMA) segment, the remainder is the 2G
Function checkmobile (){VaR Tel = $ ('. tel'). Val ();
VaR MSG = $ ('# msg_tel ');
/*"/" Represents a regular expression."^" Indicates the start position of the string, and "$" indicates the end position of the string."?" It indicates matching one or zero characters before, so here 0? The mobile phone number can start with 0 or not.Next, verify the 11-digit mobile
This article examples need to verify the content: Chinese name, mobile phone number, ID card and address, verification methods to share for everyone to reference, the specific content as follows
HTML (Form):
jquery Validation:
The Test () method determines whether the string matches a regular expression content, and returns a Boolean value (True/false)
Verify that the Chinese name fu
Js verifies the real name and ID card number, a simple example of the mobile phone number, and the real name of js
In recent projects, real-name authentication interfaces need to be called. The price of real-name authentication interfaces is not a fraction of the money compared to that of Short Messages. Therefore, the conditions for calling real-name authenticat
Android uses an http request to query the mobile phone number of the specified location and android phone number
Local Data Source
Http://webservice.webxml.com.cn/WebServices/MobileCodeWS.asmx
Webxml websites also support other request methods, such as SOAP.
Simple InterfaceBelow is MainActivity. java
Package com. sphere. guishudi; import java. util. arrayList;
The following are some regular expressions for js verification phone numbers. I have collected them from the Internet, but they are all excellent products. They are specialized in mobile phone numbers and phone numbers.
Function checkPhone (phone)
{
// Verify the phone number, including the phone number 153,159
If (phone = ""){
Alert ("the phone
Everyone should have this common sense, China's mobile phone number is the number "1", and then use the "0~9" 10 digits of the 11-digit combination, then our validation rules must be based on this idea to write.Based on the above simple idea, we can write down the following verification code, the code is as follows:
But the above code is obviously n
function Checktel () {/*Verify the phone number verification rule: Area code + number, area code starts with 0, 3-bit or 4-digit number consists of 7-bit or 8-digit number between the area code and the number can be no connector, or "-" connection such as 01088888888,010-888
Sometimes in order not to let the user's mobile phone number and ID card directly exposed to the page, we need to add an asterisk processing, the general situation is in the middle of the position with a few asterisks, the specific code can refer to the following:
var str= ' 13155555555 ';var str2 = str.substr (0,3) + "* * *" +STR.SUBSTR (7); 131****5555
The simple method of intercepting and combining str
A mobile phone number can only be tied to a Weibo account.
Binding mobile phone can be in the "Account-account settings-bind mobile phone" page according to the operation of the binding can be.
Cancel the phone binding mode:
1, use the binding mobile phone
To the users of micro-credit software to detailed analysis to share the micro-letter to change the mobile phone number of procedures for the course.
Tutorial Sharing:
1, with the phone to open the micro-letter, with your micro-signal and independent password login micro-letter, login, enter the personal center, click on my account.
2, into the Account center, click on the mailbox, your mic
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.