Regular expression for hyphen, dot, space, brackets and zip code and phone no.

Posted on 2009-04-19
Last Modified: 2012-05-06

What would be regular expression for hyphen, dot, space, brackets.,slashes..a combination of all of these?
What is the regular expression for a zip code which has a format 12345, 12345-6789 or 123456789,12345/6789, 12345(6789), 12345 6789, 12345.6789, 12345/6789.

similarly for the phone no. excluding country code and extension and may be of the format
1234567890 or (123).456-7890, 123.(456)-7890 or 123-456.7890 ,123\456\7890 etc or mix and match of

Please let em know ASAP.
It's extremely urgent.
Question by:amukta
    LVL 75

    Expert Comment

    by:Michel Plungjan
    LVL 75

    Accepted Solution


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now