[Code Note] iOS-mobile phone version number, model, operating system version, unique device identifier, ios-version number
I. Code.
RootViewController. m
# Import "ViewController. h "# import" sys/utsname. h "@ interface ViewController () @ end @ implementation ViewController-(void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the vi
Java uses regular expressions for form validation tools class, can verify mailbox, mobile phone number, QQ number, etc.
Copy Code code as follows:
Package util;
Import Java.util.regex.Matcher;Import Java.util.regex.Pattern;
/*** Use regular expressions for form validation**/
public class Regexvalidateutil {Static Boolean flag = FALSE;static S
The recent project needs to filter the phone number, remove the IP number ("1790", "1791", "1793", "1795", "1796", "1797", "1799"), +86, and other prefixes, share with you.
Package com.example.offline; public class Trimnumbertest {private static final string[] IPPFXS4 = {"1790", "1791", "1793", "1795", "1796", "1797"
, "1799"};
private static final string[] IP
JS Common mobile phone number ZIP code number regular verification
*/
Phone number Verificationfunction Istelephone (str){RegExp =/^[0-9]+ (-[0-9]+) {1,2}$/;return Regexp.test (str);}
ZIP Code Verificationfunction Ispostcode (str){RegExp =/^[0-9]{6,6}$/;return Regexp
1. We click on the "Settings" icon in the Apple phone to enter
2. Click the "Universal" button to enter in the Open interface.
3. Now find "about this machine" in general to click on it, as shown in the following figure.
4. Then we'll write down the serial number in the information displayed.
5. Now we enter the Apple official can also Baidu search "Apple serial
Recent project new features, need to mobile phone number, name, ID card number and other information to verify, the best way is through regular expression to verify, on-line check some information, wrote these tools methods.1. Verify the phone numberRule: The first digit can only be 1, the second digit is 3-8, 3-11 bit
Function checkmobile (){VaR Tel = $ ('. tel'). Val ();
VaR MSG = $ ('# msg_tel ');
/*"/" Represents a regular expression."^" Indicates the start position of the string, and "$" indicates the end position of the string."?" It indicates matching one or zero characters before, so here 0? The mobile phone number can start with 0 or not.Next, verify the 11-digit mobile phone
PHP API to get mobile phone number attribution, API mobile phone number
The API interface since the 2011 SAE platform on-line stable operation to date, increased the support of section 17th, welcomed the various collection note limit concurrent 10
Detailed instructions for use
Interface Address: Http://appyun.sinaapp.
Looking forward to the long-time subscription number Assistant app finally released! The "Team release" subscription number assistant, "app, supports the public to post content on the phone, view and reply to messages, and manage users and accounts that have been followed. For the moment, only iOS platforms are supported and Android platforms are waiting. What ar
How to hide the last two IP addresses in php and replace the number * in the middle of the mobile phone number
Sometimes we need to hide the last two digits of the IP address in the php code, and replace the number in the middle of the mobile phone
This example for you to share the common iOS regular expressions for your reference, the details are as follows
#import "Nsstring+regexcategory.h" @implementation nsstring (regexcategory) #pragma mark-Regular related-(BOOL) Isvalidatebyrege
X: (NSString *) regex{nspredicate *pre = [nspredicate predicatewithformat:@ "SELF matches%@", regex];
return [pre evaluatewithobject:self]; #pragma mark-//Mobile phone
In this paper, PHP implementation of the telephone number matching regular expression of an example, have the need for friends, refer to it.Example of a regular expression with a telephone number area:
[2,3,5,6,8,9] Only provide these types of mobile phone number: 12...,13...,15...,16...,18...,19 .... Insuffi
1, verify whether it is a Chinese characterVerify that the nickname private Boolean verifynickname () {String nickname = Edt_username.gettext (). toString (); if (nickname = = NULL | | nickname.length () = = 0) {Edt_username.seterror ("cannot be empty"); return false; } int len = 0; char[] Nickchar = Nickname.tochararray (); for (int i = 0; i 2. Verify the phone number
After research, the code to achieve access to the iphone serial number is not available, some of the online access to the phone string is written through Third-party libraries, the use of these libraries in the App Store is not audited, so there is no way to get the number of mobile phone IMSI. Since the IMSI of th
/** * User Input phone number, judge whether reasonable or not? Ask, judge the length and judge the input is reasonable * Hide the user phone number in the middle of 4, * ideas: * *. With regular judgment conditions: Length 11-bit judgment there are two methods, regular {11} and Length () ==11. Input content with regul
sometimes in order to protect personal privacy, mobile phone numbers need to be treated confidentially.
This can be solved in 2 ways, by entering any formula in the C2 and filling the formula down.
=left (b2,3) "* * *" right (b2,4)
=replace (b2,4,4, "* * *")
Copy the contents of column C to column B and paste it as a value.
The cell phone number
Digital Judgment Method: isNaN () function
The test () method determines whether the string matches the contents of the regular expression, and returns a Boolean value (True/false)
Verify that the Chinese name
function ischinaname (name)
{var pattern =/^[\u4e00-\u9fa5]{1,6}$/;
return pattern.test (name);
//Verify the mobile number
function Isphoneno (phone) {
var pattern =/^1[34578]\d{9}$/;
ret
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.