Jquery Regular Expression (mobile phone number, ID card number, Chinese name), jquery Regular Expression
Content to be verified in this example: Chinese name, mobile phone number, ID card and address. The verification method is shared with you for your reference. The details
/********************Function Name: Istelephonefunction function: fixed, mobile phone number check function, return True, reverse, return falsefunction parameters: obj, number to be checkedCheck rule:(1) Number, "(", ")" and "-"(2) The phone number is 3 to 8 digits(3) If the
[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
characters to replace.
Positive number-The length of the string being replaced
Negative numbers-the number of replaced characters starting at the end of the string
0-Insert rather than replace
Use instance:
Copy Code code as follows:
[Code]
echo strlen ($idcard) ==15?substr_replace ($idcard, "* * *", 8,4):(strlen ($idcard) ==18?substr_replace ($idcard, "* * *", 10,4): "ID
This API support 1, can enter 11-digit mobile phone number of the location of the attribution, such as: 13858861234, 2, can be entered into the 7-bit paragraph query attribution such as: 1335586, 3, support number 13, 14, 15, 17, 18, the need for small partners can refer to.
The API interface since the 2011 SAE platform stable operation so far, increased the sup
1. As shown in the following figure we open "micro-mail" on the phone and click "I" To find "settings" and then click "Account and Security" to enter, as shown in the following figure.
2. Then we open the micro-letter "account and security" we will see a "phone number" We click on it can change the number of mobile phone.
3. After we click
Drip travel to change mobile phone number must be old phone to accept the verification code can be replaced Oh, otherwise this method can not change the mobile phone number OH.
If you are using a micro-end login method as follows:
The first step: on the phone to open the micro-letter, and then click "Set" = "phone
function Funcphone ($STR)//telephone number regular expression trial {return (Preg_match ("/^ ((D{3})) | ( d{3}-))? ((0d{2,3}) |0d{2,3}-)? [1-9]d{6,8}$/", $str))? True:false;} Use the method if (Funcphone (' 0731-88888888 ')) {echo ' correct phone number ';} else{Echo ' Sorry, the phone number you entered is incorrect ';} function Funcmtel ($STR)//Cell phone
Package com.yuninfo.util; /** * Get mobile operator * Classname:mobileutil * Description:todo * @author Lizheng * @param args * @date May 30, 2012 8:58: AM * * @version/public class Mobileutil {/** * To determine the number of incoming parameter numbers for which operator * @param mobile * @return Operator Name * * * Public
static string Validatemobile (String
To the users of nail nails software to detailed analysis to share a hidden mobile phone number tutorial.
Tutorial Sharing:
1, want to set up mobile phone number hidden words, only nails the administrator to set
2, in the staff editing interface, in addition to name,
One, the JavaScript replaces mobile phone number middle 4 digits
Match the handset number to the end, in the form of a similar "123****8901" Output
' 12345678901 '. Replace (/(\d{3}) \d{4} (\d{4})/, ' $1****$2 ');
Example
Note: This section is matched by a sequential 11-digit number in the st
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
Using PHP in three simple ways to achieve the mobile phone number of the middle four (n-bit) with an asterisk display:
$mobile = ' 13912345678 ';1. String interception method$newMobile 1 = substr ($mobile, 0, 5). ' '. substr ($mobile, 9);echo $newMobile 1. '
2. Substring
[[NSUserDefaults standardUserDefaults] valueForKey: @ "SBFormattedPhoneNumber"]; get the IMEI # import "Message/NetworkController of the mobile phone. h "NetworkController * ntc = [[NetworkController sharedInstance] autorelmei]; NSString * imeistring = [ntc IMEI]; imeistring is the obtained IMEI. IMEI (International Mobile Equipment Identity) is the abbreviation of International
var name = $ (' #regemail '). Val ();
var search_str =/^[w-.] +@[w-.] + (. w+) +$/;
if (!search_str.test (name)) {
Alert ("Mailbox is illegal!") ");
$ ("#regemail"). Val (');
$ ("#regemail"). focus ();
return false;
}
var Mob=$.trim ($ ("#mobile"). Val ());
if ($.trim ("#mobile"). val ()) = = "")
{
Alert ("Mobile phone
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.