Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. need regular expression of a strict (999) 999-9999 Format

need regular expression of a strict (999) 999-9999 Format

Scheduled Pinned Locked Moved ASP.NET
csharpvisual-studioregex
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rocky
    wrote on last edited by
    #1

    hi everyone, Can anyone plz give me a regular expression of strictly (999) 999-9999 format. I've tried to modify the one available in VS .NET 2005 but couldnt do so. Thanks

    Rocky Success is a ladder which you can't climb with your hands in your pockets.

    D 1 Reply Last reply
    0
    • R Rocky

      hi everyone, Can anyone plz give me a regular expression of strictly (999) 999-9999 format. I've tried to modify the one available in VS .NET 2005 but couldnt do so. Thanks

      Rocky Success is a ladder which you can't climb with your hands in your pockets.

      D Offline
      D Offline
      dilipv 0
      wrote on last edited by
      #2

      hi Rocky#, Moast of the time i have failed due to lacking in the understanding of Regular Expression. So, i downloaded a software which contains a library of REGEX (Regular Expressions), from that i found REGEX of your need. \((?<AreaCode>\d{3})\)\s*(?<Number>\d{3}(?:-|\s*)\d{4}) Hope this help you. To download this software free of cost try this link. http://www.ultrapico.com/Expresso.htm Make other people to aware of such software. Thanks & Regards Dilip Kumar Vishwakarma

      Programmer .Net Consulting

      R 1 Reply Last reply
      0
      • D dilipv 0

        hi Rocky#, Moast of the time i have failed due to lacking in the understanding of Regular Expression. So, i downloaded a software which contains a library of REGEX (Regular Expressions), from that i found REGEX of your need. \((?<AreaCode>\d{3})\)\s*(?<Number>\d{3}(?:-|\s*)\d{4}) Hope this help you. To download this software free of cost try this link. http://www.ultrapico.com/Expresso.htm Make other people to aware of such software. Thanks & Regards Dilip Kumar Vishwakarma

        Programmer .Net Consulting

        R Offline
        R Offline
        Rocky
        wrote on last edited by
        #3

        Thanks a lot, thats a lot of help,

        Rocky Success is a ladder which you can't climb with your hands in your pockets.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups