There are always a lot of text boxes that prohibit non-Numeric Character Input. For example, if the mobile phone number has a zip code, the following describes how to prohibit it. Interested friends can learn about it at work, there are always a lot of text boxes that prohibit non-numeric characters from being entered, such as mobile phone numbers.
The Code i
/*************************************** **************************** Description: sorts the phone numbers in the file in reverse order. ** Parameter: FP is the file pointer, and startlocation is the start position of the mobile phone number. ** Return value: success; true; failure; false. ***************************************** *************************/# Defi
PHP phone numbers Mobile number zip email verificationPhone number Verificationqh-Area code dh-Phonefunction Valitel (QH, DH){var re =/^ ([d]{3,5})? [-] ([d]{7,8}) $/;Return Re.test (QH + "-" + DH);}
Mobile phone number Verificationfunction Valimobile (SJ){var re =/^13[0-9]{9}|159[0-9]{8}$/;Return Re.test (SJ);}
Postal numbering Verificationfunction Valipostcod
The data in the oracle column contains multiple mobile phone numbers separated by commas. How can I separate them ?, Oracle Column
ID NUMBER1 137 xxxx, 138 xxxxExtractedID NUMBER1 137 xxxx1 138 xxxx
create
table
test
(id
int
,
phonevarchar2(200));
insert
into
test
values
(1,
'13811111111,13311111111,13900000000'
);
insertintotestvalues(2,'15811111111,15911111111,18800000000');
select
id,c
from
(
with
t
as
(
Http://www.4008000000.com/m/cpchexian/campaign/waimei/IBhuokechanggui-weizhang.shtmlHttp://www.4008000000.com/m/cpchexian/campaign/waimei/IBhuokechanggui-ershouche.shtmlHttp://www.4008000000.com/m/cpchexian/campaign/waimei/IBhuokechanggui-xinche.shtmlHttp://www.4008000000.com/m/cpchexian/campaign/waimei/IBhuokechanggui-fuwu.shtmlGet URL to pass in the parameters, statutory holidays or weekends (excluding holiday) show, hide phone
Convert the phone number into a combination of words that can be remembered in the dictionary to find the shortest combination.
Knowledge points applied to my question:
1 Trie data structure
2. map applications
3. Knowledge of dynamic programming for Word Break
4. Recursive pruning
Ideas:
1. Create a Trie dictionary tree to facilitate searching. However, instead of using characters, the dictionary tree converts characters into
Mobile QQ Input method in the Pinyin input mode of mixed input numbers are as follows:
In the pinyin input process, the need to enter a small number of digits, the general situation is to switch to digital input mode input, the input end then cut back to pinyin input, the operation is more troublesome. QQ Input Method Mobile phone version support input pinyin, you can not switch to digital input mode, the
ID number 1 137xxxx,138xxxxTake it out.ID number 1 137xxxx1 138xxxxcreatetabletest(idint,phonevarchar2(200));insertintotestvalues(1,‘13811111111,13311111111,13900000000‘);insertintotestvalues(2,‘15811111111,15911111111,18800000000‘);selectid,cfrom(withtas(selectid,phonecfromtest)selectid,substr(t.ca,instr(t.ca,‘,‘,1,c.lv)+1,instr(t.ca,‘,‘,1,c.lv+1)-(instr(t.ca,‘,‘,1,c.lv)+1))AScfrom(selectid,‘,‘||c||‘,‘ASca,length(c||‘,‘)-nvl(length(REPLACE(c,‘,‘)),0)AScntFROMt)t,(selectLEV
are concatenated to wholename full name.NSString *firstname= (__bridge NSString *) abrecordcopyvalue (person, kabpersonfirstnameproperty);//Notice that there is a strong turn, You don't have to release resources.NSString *lastname= (__bridge NSString *) abrecordcopyvalue (person, kabpersonlastnameproperty);NSString *[email protected] "";if (firstname.length>0) {if (lastname.length>0) {Wholename=[lastname Stringbyappendingstring:firstname];}else{Wholename=firstname;}}else {if (lastname.length>0)
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.