Solved

Phone number

Posted on 2014-01-15
2
422 Views
Last Modified: 2014-01-16
I just need a regex format for phone number for this format (xxx) xxx-xxxx
Thank you in advance.

http://regexlib.com/Search.aspx?k=phone
0
Comment
Question by:VBdotnet2005
2 Comments
 
LVL 35

Accepted Solution

by:
Terry Woods earned 500 total points
ID: 39784085
This should do it, for validation purposes:
^\(\d{3}\)\s\d{3}-\d{4}$

Open in new window

If however you are trying to find a value in that format within a string, then the pattern would be a bit different (in which case, let me know).
0
 

Author Comment

by:VBdotnet2005
ID: 39786011
thank you
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Install Problem 13 32
HttpPostedFile 1 26
Problem!!! 8 33
Switching Visual Studio 2015 to normal debug display 3 28
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question