Recent project new features, need to mobile phone number, name, ID card number and other information to verify, the best way is through regular expression to verify, on-line check some information, wrote these tools methods.1. Verify the phone numberRule: The first digit can only be 1, the second digit is 3-8, 3-11 bit
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 phone
PHP API to get mobile phone number attribution, API mobile phone number
The API interface since the 2011 SAE platform on-line stable operation to date, increased the support of section 17th, welcomed the various collection note limit concurrent 10
Detailed instructions for use
Interface Address: Http://appyun.sinaapp.
Looking forward to the long-time subscription number Assistant app finally released! The "Team release" subscription number assistant, "app, supports the public to post content on the phone, view and reply to messages, and manage users and accounts that have been followed. For the moment, only iOS platforms are supported and Android platforms are waiting. What ar
How to hide the last two IP addresses in php and replace the number * in the middle of the mobile phone number
Sometimes we need to hide the last two digits of the IP address in the php code, and replace the number in the middle of the mobile phone
This example for you to share the common iOS regular expressions for your reference, the details are as follows
#import "Nsstring+regexcategory.h" @implementation nsstring (regexcategory) #pragma mark-Regular related-(BOOL) Isvalidatebyrege
X: (NSString *) regex{nspredicate *pre = [nspredicate predicatewithformat:@ "SELF matches%@", regex];
return [pre evaluatewithobject:self]; #pragma mark-//Mobile phone
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
Source: https://blog.csdn.net/seesun2012This is an execl文件导入数据库 operation that uses JXL parsing execl to import a database process 出现了科学计数法 that does not match the data you want to import, and the following are examples and solutions:example after successful import :1, mobile phone number: 15388886666 Scientific counting method:1.54E+102, Number: 123456789000000
Recently found a lot of customers, information is not complete! or QQ number, mobile phone number, MSN set as the required option is better!The following is the example of setting QQ as the required optionFind Template
template/default/member/edit.htm
Found it
function Dcheck () {
if ($ (' truename '). Value = = ') {
Tab (0);
Dm
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
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.