Verify IP Address, login account, password, EMAIL, phone number [including cell phone and landline phone
var patterns = new Object ();
var Thepat;
var r, re;
Patterns.ip =/^ (d{1,2}|1dd|2[0-4]d|25[0-5]) (. ( D{1,2}|1DD|2[0-4]D|25[0-5])) {3}$/g;
Patterns.id =/^[a-za-z0-9_]{1,20}$/g;
patterns.ps Tutorial w =/^[a-
[Jquery. validate] the custom method implements logical verification of "mobile phone number or landline phone number", jqueryvalidate
In recent project development, the following requirement is met: "Enter at least one mobile phone number or fixed phone number", as shown in
[Reprint] [jquery. validate] the custom method implements logic verification of "mobile phone number or fixed phone number", jqueryvalidate
In recent project development, the following requirement is met: "Enter at least one mobile phone number or fixed phone number", as shown in:
The jquery. validate. js verification
function Checktel () {/*Verify the phone number verification rule: Area code + number, area code starts with 0, 3-bit or 4-digit number consists of 7-bit or 8-digit number between the area code and the number can be no connector, or "-" connection such as 01088888888,010-88888888,0955-7777777 /c2>*/ varIsphone =/^0\d{2,3}-?\d{7,8}$/; /*Verify mobile phone number Mobile: 134 (except 1349) 135 136 137 138
public static class Regxcheck {//Regular verification mobile phone number (Unicom, telecom, mobile phone number), does not include the landline number, as a member login (regular verification) WinForm
The code is as follows:Copy code // Verify the mobile phone number$ Match = '/^ (13 [0-9]) | (15 [^ 4, \ d]) | (18 [0, 5-9]) [0-9] {8} $ /';// Verify the landline$ Match = '/^ (0 [0-9] {2, 3 }-)? ([2-9] [0-9] {6, 7}) + (-[0-9] {1, 4 })? $ /';// Verify the ID card number of 15 or 18 digits$ Match = '/(^ d {15} $) | (^ d {17} (d | X | x) $ )/';// Email verification$ Match = '/^
Recently in the work of the need to determine whether a number is a mobile phone number, whether it is a landline number.On the internet also found that we summarize the method, did not directly use these methods is because: mobile phone number in the beginning of a new number segment (such as 17x), the number of the landline
One, call the Skype contact person's landline or mobile phone number
1, click the Contact label, click the contact you want to call, click the down arrow in the "Call" key to see the call options, if you have added a mobile number to this contact, or the other party has entered the personal information in the phone number, you can see different options.
2, clic
When developing an Android project, there was a need to query the phone and landline attribution, but Android itself did not find a database to provide a place to query, so we needed to find a way to meet the needs of the project.My initial idea is to put these attribution data into an ordinary file, the content of the file can be in the format of JSON format, and then each time the app launches the JSON co
%.How to realize the filter of mobile phone number?650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/89/27/wKiom1gJdrvzgubBAAW49sovq-c823.png-wh_500x0-wm_3 -wmp_4-s_2761448229.png "title=" Jskhjc3.png "alt=" Wkiom1gjdrvzgubbaaw49sovq-c823.png-wh_50 "/>(Graph Source: www.konghaojiance.org)can see:After the function selection, according to their own needs to operate.Very intuitive operation steps.This article is from the "12167827" blog, please
Android-mobile phone home location and landline home location query
During the development of the Android project, there was a need to query the mobile phone and landline locations. However, Android itself did not find a database that provides the query locations, therefore, we need to find a solution to meet the needs
Based on several purposes1, battery is not good, mobile phone parts intact.2. Long-time navigation required3. No SIM card requiredTurn the obsolete phone into a portable navigation machine.Basic ideas:Disassemble the battery, obtain the circuit protection Board, reduce the voltage to 4.2v, the current 1 A, plus the capacitor to regulate the role of the switch, can do the battery (external) and external powe
1, about the JavaScript form verification, if the use of bidirectional binding front-end JS frame, it will be much easier. But bloggers still suggest that you do not leave the source JS itself. Because the source of JS is the kingly way.Attention:A, error message in the code may not be found in the code, "error. jpg" IMAGE, make ab, the validation of the judgment has been completed, only need to be based on their own validation rules to form validation, replace their regular expression.C, the bl
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.