to handle the event in this eventIn Android development, there's a lot of internal classes for efficiency reasons, and this is where it often happens.Adds a Click event to the button and handles the program in the event.
The code is as follows
Copy Code
Intent.setaction ("Android.intent.action.CALL");Intent.addcategory ("Android.intent.category.DEFAULT");Intent.setdata (Uri.pars
serial number and device identification Udid code phone direct Access1 Device Identification Udid code get: Http://fir.im/udid or the direct phone comes with the browser to enter the site link can also.Open the link click on the top right corner 3 Click on the open in Safari
Let's take a look at the match usage in jquery.
String.match (Regular)
It looks the same as JS.
The regular rules for the phone number and the email we'll see.
Cell phone number Regular: ^ (((13[0-9]{1}) |159|153) +d{8})
Email address Regular: w+ (-w+) | (. w+)) *@[a-za-z0-9]+ ((. | -) [a-za-z0-9]+] *. [A-za-z0-9]
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
: This article describes php regular expression verification (email address, Url address, phone number, and zip code). If you are interested in PHP tutorials, refer to it. The content to be verified in this example is as follows: email address, Url address, phone number, and
Php Regular Expression verification (email address, Url address, phone number, zip code), regular expression url
Content to be verified in this example:Email Address, Url address, phone number, zip codeThe verification method is shared with you for your reference. The detail
Use JS Regular expression to verify the phone number, email address, zip code. Need friends can come to the reference, I hope to help you. Cell phone number verification (13 opening and 158,159 beginning, total 11 bits) nbsp; code
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:
verification of mobile phone number (13 start and 158,159, total 11 digits) var Ss=document.getelementbyid (' TextBox3 '). Value;var re=/^ (13[0-9]{9}) | (15[89][0-9]{8}) $/if (Re.test (ss)){document.getElementById (' Label3 '). innertext= ""; Assigning a value to a label with innertext}Else{document.getElementById (' Label3 '). innertext= "Please enter the correct mobile
Angularjs + ionic registration page form verification (mobile phone number, Confirm Password, re-Send verification code after 60 s), angularjsionicOn the registration page of the created tabs and route, html:
Function:
The mobile phone number and password format are verifi
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
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
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
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.