Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
how to validate a telephone number in multiple format
rony Singh
Jan 6 2016 8:38 AM
397
Reply
i have a telephone textbox. which has two format.
one is 1 800 ###-#### and 800 ###-####.i have made regular expressions for 1 800 ###-#### and it is working fine
but unable to validate both format.means telephone number can support both format .my regular expression for 1 800 ###-#### is
"^\1[\s](800)?[\s\-]?\d{3}\-?\d{4}$" but unable to make both.please help me.what is the regular expressions for support two format
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
.net project
for file read and write