Http://www.cnblogs.com/wuhuisheng/archive/2011/03/23/1992652.html
The main code for phone number verification is as follows:
Public bool istelephone (string str_telephone)
{
Return System. Text. regularexpressions. RegEx. ismatch (str_telephone, @ "^ (\ D {3, 4 }-)? \ D {6, 8} $ ");
}
The main code used to verify the mobile
Today began a small series for everyone to organize a series of regular expression of the article, I hope you will like.
First understand the concept of regular expressions, the regular expression (regular expression) describes a pattern of string matching that can be used to check whether a string contains a seed string, to replace a matching substring, or to remove a substring from a string that matches a condition.
Java phone
]+) *) \. ([A-za-z]{2,}) ", regexoptions.ignorecase); } #endregionVerify URL#regionVerify Date///Verifying The phone number verify that the IP authentication ID is valid is not an int type look at the length of the string is not between the qualifying number a Chinese for two characters is not Chinese phone, f
A regular expression (regular expression) is an object that describes the character pattern. JavaScript regular expressions can be used for powerful pattern matching and text retrieval and substitution functions.
Cell phone number Regular expression validation.
function Checkphone () {
var phone = document.getElem
/*** Array of phone number strings that are correctly formatted by the native phone number string* @param Tel Native phone number string* @return*/Private string[] Gettelnums (String tel) {String [] telnums=new string[]{"0"};Strin
Project requirements:
Enter the phone number, real-time judge the phone number entered the compliance with the rules:
If not, the Submit button is disabled, the mobile phone number information is not submitted, and the button di
("Please fill in your mobile number!") ");return false;}if (isNaN (mobile) | | (mobile.length!=11)) {Alert ("Mobile phone number is 11 digits!") Please fill in the correct! ");return false;}var reg =/^0{0,1} (13[4-9]|15[7-9]|15[0-2]|18[7-8]) [0-9]{8}$/;if (!reg.test (mobile)){Alert ("Your mobile number is not a mobile
China telecom operator mobile phone number segment: China Mobile segment 134, 135, 136, 137, 138, 139, 150, 151, 152, 157, 158, 159, 147 [1], 182, 183 china Unicom CIDR Block 130, 131, 132, 145, 155, 156, 185, and 186) china Telecom segment 133, 153, 180, 181, 189
Description:Currently, China uses 11 mobile phone numbers, each of which has a different encoding d
Question:Sometimes people may wonder why ABC... is on the keyboard of the phone, especially before the birth of the mobile phone. In fact, in addition to sending text messages, these letters are also useful in making phone numbers easy to remember. This is a popular feature in the United States. For example, you can order a pizza from GINO by dialing 310-GINO, GI
Web page Special Effects Universal Verification function library (telephone, mailbox, mobile phone, number)This verification library is our commonly used telephone, mailbox, mobile phone, digital QQ, letters, Chinese, English and other validation functions.
/*@author: Slchen@exemple:var email= "slchen@xxxxx.com";Al
....--------------------------I can't seem to see clearly, I make up some source:-------Wolfhous--------------Submit Mobile phone number //wolfhous cnblogs Blog , reproduced please indicate the source !!!! -(ibaction) Clickphone: (ID) Sender { [smssdk getverificationcodebymethod:smsgetcodemethodsms phonenumber: self. Phone. Text Zone:@ "Customidentifie
public class Verifyutils {/** * Verify phone format */public static Boolean Ismobileno (String mobiles) {/* * move: 134, 135, 136, 137, 138, 139 , 150, 151, 157 (TD), 158, 159, 187, 188 * Unicom: 130, 131, 132, 152, 155, 156, 185, 186 Telecom: 133, 153, 180, 189, (1349 Wei Tong) * summed up is the first must be 1, The second digit must be 3 or 5 or 8, the other location can be 0-9 *///string telregex = "[1][3578]\\d{9}";//"[1]" for the 1th digit 1, "[
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.