I tried it on Google but not get proper RE.will someone help me to achieve this :
Phone Number: (Country Code)-(City Code)-(Number)
Mobile Number: (Country Code)-(Number)
obviously that should not take char.
Please help me
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is the site for regular expression. note it down for future reference, you won’t ever be dissapointed
For phone numbers: http://regexlib.com/Search.aspx?k=phone%20number
now here are some samples from there
PhoneNumbers
Mobiles:
Hope it helps