Can regular expression validation do this?

Discussion in 'ASP .Net' started by =?Utf-8?B?RWQgQ2hpdQ==?=, Nov 8, 2004.

  1. Hi,

    I want to use regular expression validator to validate time in the pattern
    of 00:00 to 23:59 , what should the expression look like?

    TIA
     
    =?Utf-8?B?RWQgQ2hpdQ==?=, Nov 8, 2004
    #1
    1. Advertising

  2. =?Utf-8?B?RWQgQ2hpdQ==?=

    Karl Seguin Guest

    something like this ought to work:

    [0-2]\d:[0-5]\d

    Karl

    --
    MY ASP.Net tutorials
    http://www.openmymind.net/


    "Ed Chiu" <> wrote in message
    news:...
    > Hi,
    >
    > I want to use regular expression validator to validate time in the pattern
    > of 00:00 to 23:59 , what should the expression look like?
    >
    > TIA
     
    Karl Seguin, Nov 8, 2004
    #2
    1. Advertising

  3. "=?Utf-8?B?RWQgQ2hpdQ==?=" <>
    wrote in news::

    > Hi,
    >
    > I want to use regular expression validator to validate time in
    > the pattern of 00:00 to 23:59 , what should the expression look
    > like?


    ([0-1][0-9]|2[0-3]):[0-5][0-9]

    --
    Hope this helps.

    Chris.
    -------------
    C.R. Timmons Consulting, Inc.
    http://www.crtimmonsinc.com/
     
    Chris R. Timmons, Nov 8, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark
    Replies:
    3
    Views:
    10,044
  2. VSK
    Replies:
    2
    Views:
    2,382
  3. Nazir
    Replies:
    3
    Views:
    5,117
    jayendra gadhavi
    Jan 2, 2008
  4. =?iso-8859-1?B?bW9vcJk=?=

    Matching abitrary expression in a regular expression

    =?iso-8859-1?B?bW9vcJk=?=, Dec 1, 2005, in forum: Java
    Replies:
    8
    Views:
    883
    Alan Moore
    Dec 2, 2005
  5. GIMME
    Replies:
    3
    Views:
    12,048
    vforvikash
    Dec 29, 2008
Loading...

Share This Page