mobile phone Number: Must start with a number, except the number, can contain "-"The code is as follows:function Ismobil (s){var patrn=/^[+]{0,1} (d) {1,3}[]? ([-]? ((d) | []) {1,12}) +$/;if (!patrn.exec (s)) return falsereturn True}Verifying ZIP CodesThe code is as follows
1. Account numberRules: Letters, numbers, underscores, letters beginning with 4-16 digits.Expression:/^[a-za-z]\w{3,15}$/;2. Mobile phone numberRule: 11 digits, starting with 1Expression:/^1\d{10}$/3. Phone numberRules: Area code + number, area code starts with 0, 3-bit or 4-digit
In this article, I will share with you the idea of how to determine whether the mobile phone number operator is mobile, Unicom, telecom, or other based on js, and then make corresponding processing based on different operators, interested friends learn it together regular expression judgment filled in
Java uses regular expressions for form validation tools class, can verify mailbox, mobile phone number, QQ number, etc.
Copy Code code as follows:
Package util;
Import Java.util.regex.Matcher;Import Java.util.regex.Pattern;
/*** Use regular expressions for form validation**/
public class Regexvalid
Today wrote a page, there is an effect, mobile phone number in the middle of 4 digits is replaced by the asterisk, this effect is very simple, the implementation of a variety of methods, can be a string interception can also use regular ^_^The effects to be achieved are as follows:135****2627js Code: Method ①: String intercept + stitching var
Original: Matching mobile, Unicom, telecom mobile phone number Regular expressionView Code1 China Mobile134.135.136.137.138.139.150.151.152.157.158.159.187.188 ,147(data card)2 China Unicom.131.132.155.156.185.1863 China Telecom 133.153.180.1894 CDMA133,1535 6 the regular is as follows:7 8 /// 9 ///Match
This article describes the PHP implementation of the replacement of mobile phone number between the number of * and hidden IP last few methods. Share to everyone for your reference, specific as follows:
$string = "13826589549";
$pattern = "/(\d{3}) \d\d (\d{2})/";
$replacement = "\$1****\$3";
Print Preg_replace
Obtain the iPhone user's mobile phone number. Use the following function to return the user's mobile phone number: extern nsstring * ctsettingcopymyphonenumber (). Then call the function. Because this function is included in coret
086-area code-number-Ext^086-[1-9][0-9]{1,4}-[1-9][0-9]{4,7}-[0-9]{3,4}$
2G's cell phone number is almost all 13.
The code is as follows
Copy Code
$mobilephone =trim ($_post["Smmobilephone"]);Regular verification of mobile phone numberif (Preg_m
JS Common mobile phone number ZIP code number regular verification
*/
Phone number Verificationfunction Istelephone (str){RegExp =/^[0-9]+ (-[0-9]+) {1,2}$/;return Regexp.test (str);}
ZIP Code Verificationfunction Ispostco
regular expression to determine the number of the operator JS Code modified version: http://www.jb51.net/article/31563.htm
When doing a Web project, sometimes need to according to the user's input cell phone number to judge the operator is mobile, unicom, telecommunications or other, and then according to different op
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 1, 133,153
The preceding example is as follows:
Copy codeThe Code is as follows: // /// Match the mobile phone number
/// Public const string PATTERN_CM
One, the page cancels the way:
We in the QQ official login page version of QQ and then find "online solution binding" After we just fill out their "QQ password" and "Verification Code", click "Unbind" can be lifted. The following figure:
Second, the message cancellation mode:
If we can not access the Internet, we could use this method, we pick up your mobile phone
1. First, the Meituan mobile app, click the setting position indicated by the arrow in the upper right corner of my page, as shown below:2. On the account settings management page, click "bind mobile phone number" and find the mobile
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 ca
rules: Leave your email address in the "first part @ Second part"The first part: By letter, number, underline, short line "-", Dot "." CompositionPart two: For a domain name, the domain name consists of letters, numbers, short-term "-", the domain name suffix,and the domain name suffix is generally. xxx or. xxx.xx, a domain name suffix is generally 2-4-bit, such as cn,com,net, now the domain name will be more than 4 bitfunction Checkemail (str) {
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.