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. Please Correct Regular expression.

Please Correct Regular expression.

Scheduled Pinned Locked Moved ASP.NET
regexhelp
3 Posts 3 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.
  • M Offline
    M Offline
    mr_muskurahat
    wrote on last edited by
    #1

    (0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d regular expression i am using to check date for MM/dd/yyyy now i want to accept M/dd/yyyy and MM/dd/yyyy format please tell where to put what and this regular expression i am using in ajax tab panel on M/dd/yyyy it gives error..

    umerumerumer

    T W 2 Replies Last reply
    0
    • M mr_muskurahat

      (0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d regular expression i am using to check date for MM/dd/yyyy now i want to accept M/dd/yyyy and MM/dd/yyyy format please tell where to put what and this regular expression i am using in ajax tab panel on M/dd/yyyy it gives error..

      umerumerumer

      T Offline
      T Offline
      ToddHileHoffer
      wrote on last edited by
      #2

      If you need a date validator, use the following. It is so much easier than regex programming. If you want to use regex try posting a question http://stackoverflow.com/questions/tagged/regex[^] I'm awful at writing regex so I'm not even going to try and help you with that.

      1 Reply Last reply
      0
      • M mr_muskurahat

        (0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d regular expression i am using to check date for MM/dd/yyyy now i want to accept M/dd/yyyy and MM/dd/yyyy format please tell where to put what and this regular expression i am using in ajax tab panel on M/dd/yyyy it gives error..

        umerumerumer

        W Offline
        W Offline
        Waleed Eissa
        wrote on last edited by
        #3

        I suggest you use a custom validation control, RE won't detect things like 30/2/2009 Tell me if you want any help with that

        Waleed Eissa Software Developer Sydney

        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