Regular Expression

Discussion in 'ASP .Net' started by Jim Heavey, May 13, 2004.

  1. Jim Heavey

    Jim Heavey Guest

    I am trying to find the regulare expression which will let me key anything
    between 1-99, I thought [1-99], but this really only allows 1-9. What do I
    need to do to get 1-99?
    Jim Heavey, May 13, 2004
    #1
    1. Advertising

  2. ^[1-9][0-9]?

    the ^ and $ anchors to the first and last char (so 990 wouldn't work, but 99 would
    the first [1-9] says a digit 1 to
    the second [1-9] has a ? to let it be optional (so you could have a single digit number

    HTH
    Tim Stal


    ----- Jim Heavey wrote: ----

    I am trying to find the regulare expression which will let me key anything
    between 1-99, I thought [1-99], but this really only allows 1-9. What do I
    need to do to get 1-99
    =?Utf-8?B?VGltIFN0YWxs?=, May 13, 2004
    #2
    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. Keith-Earl
    Replies:
    1
    Views:
    441
    Mary Chipman
    Jun 15, 2004
  2. VSK
    Replies:
    2
    Views:
    2,272
  3. =?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:
    832
    Alan Moore
    Dec 2, 2005
  4. GIMME
    Replies:
    3
    Views:
    11,924
    vforvikash
    Dec 29, 2008
  5. Noman Shapiro
    Replies:
    0
    Views:
    222
    Noman Shapiro
    Jul 17, 2013
Loading...

Share This Page