In this paper, PHP implementation of the telephone number matching regular expression of an example, have the need for friends, refer to it.Example of a regular expression with a telephone number area:
[2,3,5,6,8,9] Only provide these types of mobile phone number: 12...,13...,15...,16...,18...,19 .... Insuffi
1, verify whether it is a Chinese characterVerify that the nickname private Boolean verifynickname () {String nickname = Edt_username.gettext (). toString (); if (nickname = = NULL | | nickname.length () = = 0) {Edt_username.seterror ("cannot be empty"); return false; } int len = 0; char[] Nickchar = Nickname.tochararray (); for (int i = 0; i 2. Verify the phone number
After research, the code to achieve access to the iphone serial number is not available, some of the online access to the phone string is written through Third-party libraries, the use of these libraries in the App Store is not audited, so there is no way to get the number of mobile phone IMSI. Since the IMSI of th
/** * User Input phone number, judge whether reasonable or not? Ask, judge the length and judge the input is reasonable * Hide the user phone number in the middle of 4, * ideas: * *. With regular judgment conditions: Length 11-bit judgment there are two methods, regular {11} and Length () ==11. Input content with regul
sometimes in order to protect personal privacy, mobile phone numbers need to be treated confidentially.
This can be solved in 2 ways, by entering any formula in the C2 and filling the formula down.
=left (b2,3) "* * *" right (b2,4)
=replace (b2,4,4, "* * *")
Copy the contents of column C to column B and paste it as a value.
The cell phone number
Digital Judgment Method: isNaN () function
The test () method determines whether the string matches the contents of the regular expression, and returns a Boolean value (True/false)
Verify that the Chinese name
function ischinaname (name)
{var pattern =/^[\u4e00-\u9fa5]{1,6}$/;
return pattern.test (name);
//Verify the mobile number
function Isphoneno (phone) {
var pattern =/^1[34578]\d{9}$/;
ret
1, Taobao
API Address: http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel= mobile phone number
Parameters:
Tel: mobile phone number
Back: JSON
2, Pat
API Address: http://virtual.paipai.com/extinfo/GetMobileProductInfo?mobile= mobile phone
if ((document.regform.u_telphone1.value.length==0) | |! Checkifnumber (Document.regform.u_telphone1.value)) {
Alert ("Hint: the phone must be filled out!") ");
Document.regform.u_telphone1.focus ();
return false;
}
if ((document.regform.u_telphone2.value.length==0) | |! Checkifnumber (Document.regform.u_telphone2.value)) {
Alert ("Hint: the phone must be filled out!") ");
Document.regform.u_telphone2
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
In the original: Android system get IMEI number Mobile number IMSI numberSource code: Http://www.zuidaima.com/share/1550463673584640.htmFirst, get IMEI numberTelephonymanager telephonymanager= (Telephonymanager) This.getsystemservice (Context.telephony_service);String Imei=telephonymanager.getdeviceid ();Permissions Required:Second, get mobile phone numberTelepho
[Code Note] iOS-mobile phone version number, model, operating system version, unique device identifier, ios-version number
I. Code.
RootViewController. m
# Import "ViewController. h "# import" sys/utsname. h "@ interface ViewController () @ end @ implementation ViewController-(void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the vi
Ask to avoid the problem that the xls file phone number exported by phpexcel and the ID card are displayed in scientific notation! Nbsp; phpexcel is used for export in recent projects. it is good to use, but there are several headaches, that is, when the exported data column contains nbsp; 013434342333, 053482371284, 4222131231231231231 ask to avoid the problem that the xls file
On the phone to open QQ, and then we click on the QQ panel "message" and then click on the "Subscribe number" button, details as shown in the following figure.
Okay, then, on the open, go to the list of subscription numbers, and then we find the "Find" button.
After entering the discovery we can search and also see the following products recommended by the subscription
the penultimate start position.
length
If this parameter is set and is positive, the string length of the substring being replaced is indicated. If set to negative, it represents the number of characters at the end of the substring to be replaced string . If this parameter is not provided, it defaults to Strlen ( string ) (the length of the string). Of course, if it length is 0, then the function is where it wi
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
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.