This article gives an example of how Android obtains mobile phone numbers and carrier information. Share to everyone for your reference. The implementation methods are as follows:
Copy Code code as follows:
Package com.pei.activity;
Import android.app.Activity;
Import Android.os.Bundle;
Import Android.view.View;
Import Android.view.View.OnClickListener;
Import Android.widget.Button;
Imp
According to the Oriental Morning Post, if your business card is printed with the phone number "××××-×××", consider modifying the style. Researchers from American symbolic studies believe that the use of "dot" instead of "horizontal bars" to separate phone numbers will make people look more professional, because
An algorithm for automatically analyzing mobile phone numbers (such as AAAAABAB) is classified into aaaaa aaaa aaa aabbcc aabb aaabbb aabbb aaabababababab AAAAB ascending ABCD descending DCBA
I import a group of mobile phone numbers to the database through text (one line of mobile
Keywords: JS Javascript Regular Expression verification international phone number mobile phone number
For example, if the Chinese international code is 0086, we want foreigners to contact us directly as follows: 008610-85912411, or, (008610) 85912411, (0086) 10-85912411, + 8610-85912411, + 86-10-85912411
UAE fixed phone number: + 971 4 2241288, + 971 is his inte
Because of the use of mobile phone number verification, so simply write a simple phone number verification code.1 ImportRe2 3 4 defMain ():5Tel = input ("Please enter your phone number:")6 #ret = Re.match (r "1[35678]\d{9}", tel)7 #since the number of mobile phone number is more than 11 bits can also match succ
This article describes how to use asp.net to describe China Telecom to match the regular expressions of mobile/Unicom/Telecom mobile phone numbers. For more information, see.
Simplest verification of phone numbers and mobile phone number
We commonly used to verify the phone number of JS
--jquery Mobile phone Number verification
Cell Phone verification
function Ismobil (s)
{
//var reg=/^ ((13[0-9)) | ( 15[^4,\D]) | (18[0,5-9])\d{8}$/;
var reg=/^1\d{10}$/;
if (!reg.exec (s)) {return
false;
}
return true;
}
Here we have a brief list of issues to be noted:* Input box, can only enter
Without an interface, you can only simulate JSON data yourself.Just need to simulate some phone numbers, I do not bother to write freely,Instead of writing a small function to implement a randomly generated phone numberDOCTYPE HTML>HTMLLang= "en">Head> MetaCharSet= "UTF-8"> Metaname= "Viewport"content= "Width=device-width, initial-scale=1.0"> Metahttp-eq
Js uses regular expressions to verify mobile phone numbers in China
This article mainly introduces how to verify mobile phone numbers in China using js and regular expressions, as well as examples of simple verification of mobile phone n
cannot begin with 0.Part Three: You can have decimals or no decimals, but once a decimal point appears, at least one digitvar reg =/^[+-]? (\d| [1-9]\d+) (\.\d+) $/;
Valid positive integer (contains 0):/^[+]? (\d| [1-9]\d+) $/;
Valid negative integer (contains 0):/^-(\d|[ 1-9]\d+) $/;
Judge mobile phone number (simple version):var reg=/^1\d{10}$/;
Judge the mailboxThe first part: numbers, letters, unde
The topic describes the mobile launch of the Xiaonei Cornet and family network Cornet is very convenient, but in a new phone but there is an embarrassing bug. For example, when the following number is included in the Address book:1. Xiao Wang: 6002. Xiao Li: 4676543. Xiao Zhang: 600010When you enter 600, the phone will automatically call the king, so you will never be able to call Xiao Zhang. Now, there are
Requirements: (1) Telephone Numbers consist of numbers, quot; ( quot;, quot;) quot; and quot;- quot; (2) the telephone number is 3 to 8 digits (3). If the telephone number contains a region code, use quot; ( quot;, quot;) quot; or quot;- quot; separated from other parts (required: (1) the telephone number is composed of numbers ,"(",") "and"-"constitute (
. The password is the first eight OR the last eight digits of the mobile phone number. For example, the first eight digits of 13812345678 and the last eight digits of 13812345 are generally the last eight digits. Both of my cards are the last eight digits.B. Use the pukcode on the card (on the back of the card) as the password. I use this password on the card.
Generally, card buyers do not care about passwords, including those that do not follow me. I
Topic:Suppose you have a boring task to find all the phone numbers and email addresses in a long page or article. If you turn pages manually, you may need to look for a long time. If you have a program that can find the phone number and e-mail address in the text of the Clipboard, just press Ctrl-a to select all the text, press Ctrl-c to copy it to the Clipboard,
cannot start with 0 The third part: can have the decimal place can also have no decimal, but once appears the decimal point, after at least with a number var reg =/^[+-]? (\d| [1-9]\d+] (\.\d+) $/; valid positive integer (inclusive 0):/^[+]? (\d| [1-9]\d+) $/; valid negative integer (inclusive 0):/^-(\d|[ 1-9]\d+) $/; Judge mobile phone number (simple version): Var reg=/^1\d{10}$/; determine the first part of the mailbox:
Topic Portal1 /*2 Construction: The structure of the order, write some wordy, mainly want to use the flow, less the judgment condition WA several times: (3 */4#include 5#include 6#include 7#include 8#include 9#include Ten#include One#include string> A using namespacestd; - - Const intMAXN = 1e2 +Ten; the Const intINF =0x3f3f3f3f; - structPhone - { - stringname; + stringNUM[MAXN]; - inttot, T, p, G, id; + }P[MAXN]; A at BOOLcmp_t (phone
Importjava.util.Random;
/**
* Created by the Administrator on 2017/5/25
. * *
Test {
main (string[] args)
{(i = 0; i "139";//define telephone number with 139 opening
Random ()///define RANDOM, generate random number
( j = 0; J out. println (number);//output a phone numbers
}
}
}
Run Result:
13950035537 13966427550 13947766628 13916882701 13961332155
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.