ios Check phone number of american valid or not -


i want check string or not match american phone number? (xxx)xxx-xxxx or xxx-xxx-xxxx

please me,thank you.

i think best solution using rmphoneformat.

as description says :

rmphoneformat *fmt = [[rmphoneformat alloc] init]; // call number of times nsstring *numberstring = // phone number validate bool valid = [fmt isphonenumbervalid:fmt]; 

good luck !


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -