Phone number

I just need a regex format for phone number for this format (xxx) xxx-xxxx
Thank you in advance.
Who is Participating?
Terry WoodsConnect With a Mentor IT GuruCommented:
This should do it, for validation purposes:

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).
VBdotnet2005Author Commented:
thank you
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.