database has seven fields: Id (identifier), Startno (start number), Endno (ending number), Sheng (Number of provinces, autonomous regions or municipalities), Shi (number City), Tmobile (operator), Cardtype (type of card).
Finally, add two using commands in the form Form1.cs page: Using System.IO and Using System.Data
The article has three commonly used functions, respectively, is to determine whether it is a legitimate user name, to determine whether it is a legitimate user password, determine whether it is a legitimate telephone number, these three is the development of the function, the example code is as follows:
Function name: CheckUser ($C _user)
Role: Determine whether a valid user name
Parameters: $C _user (us
Open the mobile phone number query website in a browser, find the address he called in the preceding steps, and write the code as follows:
The Code is as follows:Using System;Using System. Windows. Forms;Using System. Xml;Namespace HnVote{Public partial class Mobile: Form{Public Mobile (){InitializeComponent ();}Privat
One: Mailbox input box
1: Do not enter any characters2: Enter Chinese space3: Enter English space4: no @ and dot in string example: huiyanni163com5: There is no dot in the string for example: huiyanni@163com6: No @ bit in string7: Special characters in string example: $huiyanni @163.com8:@ and dots are present.9: First string taste @ For example: @163.comThere are no strings between 10:@ and dots for example: huiyanni@.com11: String After thought is a point for example: huiyanni@163com.12: More
JS-determine the mobile phone number and zip codeBytes ----------------------------------------------------------------------------------------------------------------------Phone/Mobile: Zip code:
Author: nycqwert
The code is as follows
function Funcmtel ($STR)//mobile number Regular expression test
{
Return (Preg_match ("/(?: 13d{1}|15[03689]) d{8}$/", $str))? True:false;
}
Test
18678785887
Return to
False
Cause analysis, see the discovery that the above is only validated with 13, 15, the beginning of the natural 18 is not available
After modification
The code
China's mainland operators of mobile phone number standard format is: Country code + mobile phone number, for example: 8613912345678. Features are as follows:1. length 13;2. Begin with 86 of the country code;3. Each digit of the m
At work, you always encounter a lot of text boxes that prohibit the input of non-numeric characters, such as mobile phone number and zip code.
Copy Code code as follows:
protected void Button1_Click (object sender, EventArgs e){if (Regex.IsMatch (TextBox1.Text.Trim (), @ "^\d{7,11}$")){String num = TextBox1.Text.Trim (). Substring (0, 7);DataRow dr = DAL.oledb.ExecuteDataRow ("Db.mdb", "SELECT * from list where num =?", num);if (dr! = null){Response.Write (TextBox1.Text.Trim () + "}}}ASP. NET implementation of mobile phone number attribution to query, the
Instance for vue mobile phone number, email RegEx verification, and 60 s verification code sending, vue60s
Today, I wrote a simple verification code for the components I used earlier. However, I feel that the components I wrote are not very useful in this project. Because they are used less often, they are directly wri
Recently, I was busy with the business Assistant of the company. I found some problems with mobile phone number verification. When I fixed the bug myself, my colleagues used the system to write some functions. I looked at the prototype of the function. Although simple, I still stayed to learn or use it whenever.
Function GetMobileType (mobile: string): integer; //-1 error, PHS, mobile
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 number operator js Code
code example to verify phone number format:In some forms you need to verify the phone format is correct, of course, there are many ways to verify, the following is a common code.The code is as follows:functionIsMobile (MOBILE) {if(mobile.length!=11) {alert (' Please enter a
Note: According to the Android security mechanism, when using Telephonymanager, you must add the Androidmanifest.xml in theName= "Read_phone_state"/> cannot obtain permission from the system.
Android development platform, you can get the local number through Telephonymanager.
Cases
The code is as follows
Copy Code
Private String Get
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
This article describes in detail the whole process of code implementation for mobile phone number attribution query in asp.net and the methods described later. If you need it, you can refer to it.
Step 1: Add a reference in "Reference": System. configuration.
Step 2: Right-click the project and choose "add"> "new item"> add an "Application configuration file", th
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.