In the daily use of the Android phone, the phone number to get a contact avatar, is often encountered problems. This article is an example of how Android is getting contact with a phone number to get a head image of the implementation code. Share for everyone to use for refe
When I woke up QQ found someone to find me a paste Stick crawler source code, think of the time before practiced hand wrote a crawl Baidu post record mailbox and mobile phone number crawler, so open source share to everyone learn and reference.Requirements Analysis:This crawler is mainly to Baidu bar in the content of various posts to crawl, and analysis of the content of the post will be the mobile
entered email address // var emailreg1 =/^ \ w + ([-+.] \ w +) * @ ("@") \ w + ([-.] \ w + )*\. \ w + ([-.] \ w +) * $/; // This can also be var emailreg =/^ \ w + (-\ w +) | (\. \ w +) * \ @ ("@") [A-Za-z0-9] + ((\. |-) [A-Za-z0-9] + )*\. [A-Za-z0-9] + $/; if (emailreg. test (emailvalue )){}
ID card:
Var userCardvalue = $ ("# UserIDCard "). val (); // obtain the input ID card var userCardreg =/(^ \ d {15} $) | (^ \ d {18} $) | (^ \ d {17} (\ d | X | x) $)/; var taiwanreg =/^ [A-Z] [0-9] {9} $
as follows:Payload: "+ alert (1) +" takes 12 charactersI wanted to shut down the submitted results. Several friends in the parsec group started to talk about how to not load hooks or something.(I gave up jquery after reading it a little. Later I found that jquery was renamed to jq, And then I immediately started fighting)With the help of qaz. me, the short domain name of the pirate in Somalia is more confident.So construct payload again to load jsFin
The first step: we open the latest version of the "Chili Management app," and then click on "My Page" after the "Account Center" and then click on open Access;
The second step: under the Account center you will see a "mobile phone number" This mobile phone number is the only certificate of user login to the pl
This article illustrates the method of jquery to realize the number selection of mobile phone numbers. Share to everyone for your reference. Specifically as follows:
Some time ago to see the free combination of Unicom package is very tempting and decided to change the number, but the number was a very tiring job. In t
the encryption algorithm (undefined if the user does not agree to the authorization ).
EncryptedData: Encrypted data of user information (undefined is returned if the user does not agree to the authorization)
GetPhoneNumber: function (e) {console. log (e. detail. errMsg) console. log (e. detail. iv) console. log (e. detail. encryptedData) if (e. detail. errMsg = 'getphonenumber: fail user deny') {wx. showModal ({title: 'hprompt ', showCancel: false, content: 'unauthorized', success: function (
;} @Overridepublic boolean onoptionsitemselected (MenuItem Item) {//Handle Action Bar item clicks here. The action bar will//automatically handle clicks on the Home/up button so long//as you specify a parent activity in and RoidManifest.xml.int id = item.getitemid (); if (id = = r.id.action_settings) {return true;} return super.onoptionsitemselected (item);} /** * A placeholder fragment containing a simple view. */public Static class Placeholderfragment extends Fragment {public placeholderfragme
General Home Phone number, if no area code is 7-bit or 8-digit length, and the area code is 3 digits or 4 digits and a horizontal. So, we write the validation code through two regular expressions for phone number verification.
Home phone
1, we successfully login webmail and then click "Mailbox Settings"-"account Security"-"binding mobile phone number" effect is as follows
2, and then we fill in this email account password to determine the operator's identity effect as shown below.
3, here we enter their mobile phone number, the effect
= "") {return
false;
} else {
if (!/^[0-9][0-9]{5}$/.test (postcode)) {return
false;
}
}}
return true;
}
Order Submission Page-Verify phone number
function Is_mobile (MOBILE) {
if (mobile = "") {return
false;
} else {
if (!/^0{0,1} (13[0-9]|15[0-9]|18[0-9]|14[0-9]) [0-9]{8}$/.test (MOBILE)) {return
false;
}
return true;
}
Order Submission Page-Verify the legality of the email
fun
AngularJS Form Verification mobile phone number instance (not required), angularjs is required
The Code is as follows:
Regular Expression:
1. null match: ^ $
2. Matching mobile phone number: ^ (\ + 86) | (86 ))? 1 [34578] \ d {9}) $
3. display the control prompt: ng-show = "myForm.
Startquery function of Callerinfoasyncquery.
Frameworks/base/telephony/java/com/android/internal/callerinfoasyncquery.java/** * Factory to start the Quer
Y based on a number. * * Note:if The number contains a "@" character we treat it * as a SIP address, and look it up directly in the Data
Table * Rather than using the Phonelookup table.
* Todo:but Eventually we should expose two separate, one
Use a regular expression to determine whether a mobile phone number is used (simple and practical ).
The following code is used to determine whether the expression is a mobile phone number. The specific code is as follows:
Public static boolean isMobileNO (String mobile) {Pattern p = Pattern. compile ("^ (13 [0-9]) |
This crawler is mainly to Baidu bar in the content of various posts to crawl, and analysis of the content of the post will be the mobile phone number and email address crawled out. The main process is explained in detail in the code comments.
Test environment:
Code tested in Windows7 64bit,python 2.7 64bit (Installation mysqldb extension) and CentOS 6.5,python 2.7 (with mysqldb extension)
Environment Pre
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.