NSString + Check, iOS determines whether the mobile phone number format is correct
Usage: create a class that inherits from NSString, import the NSString + Check. h header file, and determine the value of the string (checkPhoneNumInput) YES or NO.
// NSString + Check. h
// Ics
//
// Created by Casystar on 15-4-2.
// Co
Smsmanager-windows Phone PC SMS management tool when checking for version updates, the text content between the two special strings in this page is crawled (3 total) and replaced by \ n is a newline, and the HTML escape character is the original character.Wpsmsmanager0-start "1.2" End-wpsmsmanager0Wpsmsmanager1-start "new version V1.2 released (2015/4/10) \ n Update description: \ n can export SMS to Android phone
%.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
At+cnum is the SIM card to check the local number. but you have to write this number first . Sim card inside. because whether it's mobile or unicom Sim Card, when bought to the user did not write the local number in the SIM card. Once you've written your local number, Sim Card, whether you put this sim card into that phone, with At+cnum can find the number of the machine. Action command returns the Msisdns
different address, the MAC address is actually the adapter address or adapter identifier EUI-48.
Mobile MAC address How to check, how to check the phone MAC address "query Tutorial"
1. Access to the Mobile Settings center, in the network and WLAN, there will be a high level of WiFi settings
2. From the network center, press function key to enter
of the selected contact, and finally get the data from the activity.①. Set up a Click event for select Contacts; ②. Connect two activity via Intent in the Click event Method (the wizard sets the third step, select the contact); ③. Startactivityforresult Intent, int Requestcode) method starts, the parameter intent is the intention of connecting two activity, int requestcode is the result code returned, here first set to 0.Click event Methodpublic void SelectContact (view view) {Intent Intent = n
Write a custom JavaScript function Checkphone () and use regular expressions in the function to determine if the phone number is in the correct format and give a hintJavaScript Check phone format is wrong
This article is an example of Android checking that the phone has a way to install an application. Share to everyone for your reference, specific as follows:
Mobile phone users are particularly tired of manual input of a large number of information, in a program can invoke other programs or functions can often give users a better user experience, so that users feel more cordial, so the integration between
/** * form Check function library *//** * Determine if the email format is correct * @param $email */function is_email ($email) { return strlen ($email) > 6 A mp Preg_match ("/^[\w\-\.") [Email protected] [\w\-\.] + (\.\w+) +$/", $email);} Determines whether the HTTP address is legal function Check_url ($url) { return Preg_match ("/^[a-z0-9][a-z0-9\-]+[a-z0-9" (\.[ a-z]{2,4}) +$/i ", $url);} Determines whether the HTTP address is valid function
n Person (n
n is very small, building an adjacency matrix, Map[i][j] indicates that the person numbered I called the person numbered J.
Run through the Floyd to find the delivery closure.
Finally, we use and check the set to group.
Purple Book has another method of grouping, that is, a new diagram, the same phone circle of people interconnect an edge, and then output each of the connected components of th
Check the Android phone for the existence of a processpublic boolean Checkapp (String packagename) {if (PackageName = = NULL | | "". Equals (PackageName))return false;try {ApplicationInfo info = Getpackagemanager (). Getapplicationinfo (PackageName, Packagemanager.get_uninstalled_packages );return true;} catch (Namenotfoundexception e) {return false;}}Traverse all apps in your Android phoneprivate void Fore
You can check the software/hardware version as described in the following steps:
1. On the standby screen, click "Application".
2. Select "Settings".
3. Choose "About Mobile phone".
4. If you would like to see more information about the mobile phone, please select "status".
5. Scroll down to view mobile phone
How to use: Create a new class that inherits from NSString, and then import the Nsstring+check.h header file by judging the string's property value (Checkphonenuminput) YES or NO.//Nsstring+check.hIcs//Created by Casystar on 15-4-2.Copyright (c) years Dong. All rights reserved.//#import @interface NSString (Check)-(BOOL) checkphonenuminput;@end//NSSTRING+CHECK.MIcs//Created by Casystar on 15-4-2.Copyright (c) years Dong. All rights reserved.//#import
: = Copy (APID, 7, 2);Syear4bit: = Scentury syear2bit;Smonth: = Copy (APID, 9, 2);Sdate: = Copy (APID, 11, 2);EndImonth: = Strtoint (Smonth);IDate: = Strtoint (sdate);if (imonth in [01..12]) = False ThenBeginResult: = Format (' Invalid ID number: Month must be between 01-12 (%0:s) ', [Smonth]);Exit;Endif (imonth in [1, 3, 5, 7, 8, and ten]) thenBeginif (iDate in [01..31]) = False ThenBeginResult: = Format (' Invalid ID number: Invalid date, cannot be zero or exceeds maximum value for the month (
The main use of Java.util.regex class.
Copy Code code as follows:
Import Java.util.regex.Matcher;
Import Java.util.regex.Pattern;
public class Checkmobileandemail {
/**
* Verify that the mailbox address is correct
* @param Email
* @return
*/
public static Boolean checkemail (String email) {
Boolean flag = false;
try{
String check = "^" ([a-z0-9a-z]+[-|\\.]? ) +[a-z0-9a-z]@ ([a-z0-9a-z]+ (-[a-z0-9a-z]+)? \ n.) +[a-za-
if (! (/^1[3,5,6,7,8,9]\d{9}$/). Test (E.detail.value.data_phone)) { Wx.showtoast ({ ' Please enter a valid 11-digit mobile number! ') , }) Else if (! (/(^\d{15}$) | (^\d{17} ([0-9]| X|X) ($)/. Test (E.detail.value.data_idcard))) { Wx.showtoast ( {' ID number must be a 18-bit second-generation ID card! ') , }) } Else if (! (/^ ([a-za-z0-9_-]) [email protected] ([a-za-z0-9_-]) + (. [ A-za-z0-9_-]) (+$)/. Test (E.detail.value.data_email))) { Wx.showt
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.